jeudi 11 avril 2019

dusk can't assetSee its own ExampleTest

I am new to dusk and I just installed dusk on a fresh laravel project. when I enter php artisan:dusk I get the following error that says it can't see the text "Laravel" on "/" route despite the the fact that it is there. And the browser doesn't open either. Thanks in advance :)

Warning: TTY mode is not supported on Windows platform.
PHPUnit 7.5.8 by Sebastian Bergmann and contributors.


DevTools listening on ws://127.0.0.1:11633/devtools/browser/aee653fc-733b-4f2d-af35-5b347d1a497d
[0411/230433.674:INFO:CONSOLE(5496)] "Uncaught SyntaxError: Unexpected token }", source: http://localhost/dashboard/javascripts/all.js (5496)
F                                                                   1 / 1 (100%)

Time: 6.62 seconds, Memory: 14.00 MB

There was 1 failure:

1) Tests\Browser\ExampleTest::testBasicExample
Did not see expected text [Laravel] within element [body].
Failed asserting that false is true.

C:\laravel\dusk\vendor\laravel\dusk\src\Concerns\MakesAssertions.php:173
C:\laravel\dusk\vendor\laravel\dusk\src\Concerns\MakesAssertions.php:144
C:\laravel\dusk\tests\Browser\ExampleTest.php:20
C:\laravel\dusk\vendor\laravel\dusk\src\Concerns\ProvidesBrowser.php:67
C:\laravel\dusk\tests\Browser\ExampleTest.php:21

FAILURES!
Tests: 1, Assertions: 1, Failures: 1.

Aucun commentaire:

Enregistrer un commentaire