Testing Filter Tabs

When Using tabs to filter the records, how can we test these filter functions.
Solution
@shabxs @sfrigzs you can pass in the name of the tab you want to test:

livewire(ListOrders::class, [
        'activeTab' => 'pending',
    ])
        ->assertSuccessful()
      ->assertCanSeeTableRecords($pendingOrders)
Was this page helpful?