© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
7 replies
shabxs

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)
livewire(ListOrders::class, [
        'activeTab' => 'pending',
    ])
        ->assertSuccessful()
      ->assertCanSeeTableRecords($pendingOrders)
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Using Blade Tabs to filter `getFooterWidgets()`
FilamentFFilament / ❓┊help
5mo ago
hidden filter icon on other tabs
FilamentFFilament / ❓┊help
3y ago
Default Table Filter when using Tabs
FilamentFFilament / ❓┊help
3y ago
Default table filter in combination with tabs
FilamentFFilament / ❓┊help
3w ago