I would recommend using cypress
It was covered in yesterdays laracon talk. https://youtu.be/f4QShF42c6E?t=11963
Its like dusk on steroids. You can time travel through the test and see exactly what happened
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I've recently started trying to use Dusk with Inertia projects (using React rather than Vue if that matters), and I've quickly run into issues that make me question if it is the best tool for the job. As a specific example, having to manually make the browser wait for the DOM to be repainted as described here (https://github.com/inertiajs/inertia-laravel/issues/83) by giving it an element to watch is unintuitive to me, and feels like something I will forget between every session of working on the project. In the past, when I've run into stuff like this early into using a tool, it's been a pretty good sign that I'm using the wrong tool for the job, so I wanted to ask if there is a better framework to be using for browser testing Inertia projects. If Dusk is still the best way to go, is there a guide somewhere that you can recommend about using Dusk with Inertia projects that covers these kinds of gotchas etc.?
Please or to participate in this conversation.