Skip to content

Commit

Permalink
search for something that is not on the current page
Browse files Browse the repository at this point in the history
  • Loading branch information
luanfreitasdev committed Nov 4, 2021
1 parent 84397c5 commit 1da90c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/Feature/PaginationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down

0 comments on commit 1da90c0

Please sign in to comment.