Have you tried adding some waiting? https://laravel.com/docs/9.x/dusk#waiting
Can you see dusk open the browser or is it headless?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
hi fellows I need a hand here, I install a new laravel, then jetstream with --vue flag this give me all about view and inertia to compile and see the work, now I want to test this with dusk this is the error
Did not see expected text [ready] within element [body]
I can make this test run if I ADD the following
<body class="font-sans antialiased">
ready // notice that I have to put this OUTSIDE inertia in order to make this works
@inertia
</body>
so notice that dusk find the word READY but because is outside inertia, so how I can make dusk go inside INERTIA and find the text ready the one that is inside the components inside inertia ? ... thanks in advance
@sinnbeck don't worry thanks for your help, Okay just for the record and if someone get into this follow this link in order to use INERTIA and DUSK and PEST in order to make the tests https://pestphp.com/docs/plugins/laravel#laravel-dusk
then run php artisan pest:dusk
as expected this can't be runned inside SAIL because sail don't got google chrome in order to make tests iside a browser... so this browser test must be done for now on a computer or ... some how install a google browser driver inside the sail containers, maybe someone can handle this from this comment thread further
https://laravel.com/docs/9.x/dusk#managing-chromedriver-installations
Please or to participate in this conversation.