© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
fasna

Test visible elements in Infolist

I'm trying to write testcases for the Infolist in my index page of resources. I copuldn't find any documentation on that, I can load the component. No idea, how can I proceed further?
Need to assert, whether I can see the correct record and field names.

Here is my test code:
test('user can view an individual user', function () {
    $user = User::get()->first();
    $testable = livewire(ListUsers::class)
        ->callTableAction('view', $user);
    $testable->instance()->getInfolist('infolist');
});
test('user can view an individual user', function () {
    $user = User::get()->first();
    $testable = livewire(ListUsers::class)
        ->callTableAction('view', $user);
    $testable->instance()->getInfolist('infolist');
});
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

Infolist ViewResource Test
FilamentFFilament / ❓┊help
3y ago
Test Slideover is Visible
FilamentFFilament / ❓┊help
2y ago
How to test Infolist Action?
FilamentFFilament / ❓┊help
2y ago
How to test that field hidden in infolist?
FilamentFFilament / ❓┊help
3y ago