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 () {