From 1da90c0f4010801fa46fcb313f85ad396485422d Mon Sep 17 00:00:00 2001 From: Luan Freitas Date: Thu, 4 Nov 2021 14:34:25 -0300 Subject: [PATCH] search for something that is not on the current page --- tests/Feature/PaginationTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/Feature/PaginationTest.php b/tests/Feature/PaginationTest.php index 7c42f284..eb99a346 100644 --- a/tests/Feature/PaginationTest.php +++ b/tests/Feature/PaginationTest.php @@ -70,11 +70,14 @@ ->call('gotoPage', '11') ->assertSeeHtml('wire:click="previousPage"'); -it('search for something that is not on the current page') +it('searches for something that is not on the current page') ->livewire(DishesTable::class) ->assertSeeHtml('Francesinha vegana') ->call('gotoPage', 2) + ->assertSeeHtml('Bife à Parmegiana') + ->assertDontSeeHtml('Francesinha vegana') ->set('search', 'Francesinha vegana') + ->assertDontSeeHtml('Bife à Parmegiana') ->assertSeeHtml('Francesinha vegana'); it('properly paginates', function () {