create(); $url = route('share.download', $share); $response = $this->get(route('share.created', $share)); $response->assertOk() ->assertSee($url, false) ->assertSee('data-test="show-qr-code"', false) ->assertSee('data-test="share-sheet"', false) ->assertSee('share-'.$share->token.'.png') ->assertSee('
'.app(QrCodeService::class)->svg($url).'
', false) ->assertDontSee('Recipients also need the password.'); }); test('the QR code dialog reminds that a protected share also needs its password', function () { $share = Share::factory()->withPassword()->create(); $this->get(route('share.created', $share)) ->assertOk() ->assertSee('Recipients also need the password.'); });