Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Daniel-Pablo's avatar

SOLVED - Help Inertia Vue3 and dusk not working all inside laravel

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

0 likes
4 replies
Daniel-Pablo's avatar

@sinnbeck hi! thanks for replying, I got it running now, and for any other person that could get into the same issue, I am working with laravel SAIL and thats why it is not working, for some reazon SAIL do not enter into the INERTIA stuff... so I run

php arisan dusk test

and that makes the test run and also enter into the Inertia part Do you know why it dont run in the SAIL container? thus all the app is Laravel 9 all installed form new so when I run

sail dusk test

the test are working UNTIL I hit the @inertia stuff Thanks

Daniel-Pablo's avatar
Daniel-Pablo
OP
Best Answer
Level 12

@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.