Clear intent with Laravel HTML assertions
Writing tests can feel like a misuse of time, so when something feels weird or behave unexpectedly, it’s tempting to take the fastest way. However, as a project grows, so does chaos.
For me, assertSeeText was the pain point: sometimes it works, sometimes it doesn’t and I then rely on the generic assertSee (the fastest way!) without understanding why. It was disappointing, so I found how to avoid this mess.