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!
Gist
My Structure
My Structure. GitHub Gist: instantly share code, notes, and snippets.
No description
No description
No description
No description
0 Replies
No replies yetBe the first to reply to this messageJoin