Testing Filter Tabs
When Using tabs to filter the records, how can we test these filter functions.
Solution:Jump to solution
@shabxs @sfrigzs you can pass in the name of the tab you want to test:
```php
livewire(ListOrders::class, [...
5 Replies
what would you test, the action?
I wanted to test assertCanSeeTableRecords() assertCanNotSeeTableRecords() on all available tabs
Hi @shabxs, were you able to test it? I'm trying here, but without success.
Solution
@shabxs @sfrigzs you can pass in the name of the tab you want to test:
Thank you, it works fine!