Closed enourinick closed 5 years ago
Hi, which image have you tried?
And do you have
'--disable-gpu', '--headless', '--no-sandbox',
in your DuskTestCase driver setup?
Thank you very much, you saved me 👍
My problem is I've forgotten to put '--no-sandbox'
in my DuskTestCase
driver, and now everything is going very well.
Hello! The same happened to me!
I put '--no-sandbox'in my
DuskTestCase`
but now:
1) Tests\Browser\ExampleTest::testBasicExample
Did not see expected text [Laravel] within element [body].
Failed asserting that false is true.
any ideas?
modify the .env.dusk.local?
@nmardones This error has to do with the actual tests being run. Your setup seems to be fine if you can see this.
@MCMainiac If you're right, the configuration is ok! and when executing it in gitlab the error is for another reason. I was missing the phpunit.dusk.xml file Thank you
Hi,
I'm using your image for my dusk test but it seems chrome driver sucks!
here is my
.gitlab-ci.yml
filethe problem which I've faced with is it seems chromedriver does not run correctly or something!
but every thing on my local machin runs correctly!
even I've tried to use the
chromedriver-linux
file from thevendor\laravel\dusk\bin
and the other versions of chromedriver (version 2.40, 2.38 and 2.35) which I've downloaded directly formhttp://chromedriver.chromium.org
but with all of them after sometimes (about 1 or 2 minuts) the error ofOperation timed out after 30001 milliseconds with 0 bytes received
has been shown.did I do something wrong?
I'm using laravel 5.7 and dusk 4.0 (both the latest version).