© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago
KingStalker

Help Needed with Testing Tabs in Using Pest

I need some help with testing. I'm very new to TDD and have been learning more every day. Following @Leandro Ferreira tip, I migrated from PHPUnit to Pest and have now migrated all my tests.

However, I'm unsure how to test a specific component. The project is a debt collector experiment where an agent works on an account that was handed over. I'm currently on the manage page, which has a sub-navigation. If you go to the interact sub-navigation, it shows all pages I've registered in the resource. This includes tabs that the agent can click on, which return a Livewire component. Some of these are forms, and some are tables, etc.

Basically, I want to know how to write a test for these tabs and if I'm on the right track. Sorry, I don't have anyone else to ask, so I thought I'd see if someone here could give me some tips and let me know if I'm on the right track.
Sorry if this is too much, but if someone could take a look, I would really appreciate it.

Here's the GitHub gist with the code example:
https://gist.github.com/Sheldon-Knight/ace721bc9ce2f3677372e963ccedabf7

Thank you!
2.PNG
3.PNG
4.PNG
1.PNG
Gist
My Structure
My Structure. GitHub Gist: instantly share code, notes, and snippets.
My Structure
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

testing uploads with Pest
FilamentFFilament / ❓┊help
3y ago
testing panels in pest?
FilamentFFilament / ❓┊help
3y ago
Filament v4 testing with Pest
FilamentFFilament / ❓┊help
5mo ago
Add unit testing on ToggleColumn with using Pest
FilamentFFilament / ❓┊help
2y ago