Skip to content

Commit

Permalink
Fix pagination tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lsmedia committed Jul 13, 2024
1 parent a48cc83 commit d89fb17
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/Feature/PaginationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,17 @@
->livewire(DishesTable::class)
->set('setUp.footer.perPage', '4')

->assertSeeHtml('wire:click="nextPage(\'default\')"')
->assertSeeHtml('wire:click="nextPage(\'page\')"')
//page #2
->call('gotoPage', '2')
->assertSeeHtml('wire:click="nextPage(\'default\')"');
->assertSeeHtml('wire:click="nextPage(\'page\')"');

it('displays previous links "<" and "<<"')
->livewire(DishesTable::class)
->assertDontSeeHtml('wire:click="previousPage(\'default\')"')
->assertDontSeeHtml('wire:click="previousPage(\'page\')"')
//page #2
->call('gotoPage', '2')
->assertSeeHtml('wire:click="previousPage(\'default\')"');
->assertSeeHtml('wire:click="previousPage(\'page\')"');

it('searches for something that is not on the current page')
->livewire(DishesTable::class)
Expand Down

0 comments on commit d89fb17

Please sign in to comment.