I'm trying to create browser tests, as described in the Laravel documentation at https://laravel.com/docs/5.8/dusk . The problem is that I have to develop them on a Windows 8 machine. When I try to run them with php artisan dusk
, the test runs, but the part that should open the browser to display the behavior does not work. In the console the test informs me of it, like this: Warning: TTY mode is not supported on Windows platform
. This means, as I understand it and have checked from various sources, that the browser emulation cannot run on Windows.
What I would like to know is whether this limitation comes from Laravel itself, or from the dusk package and, in the latter case, if there is an alternative package that allows me to do these browser tests on Windows in a Laravel project.
The error is not coming from Laravel but from the Dusk package.
Check out this workaround they offer here (Stack Overflow).
In short, it indicates that you use ChromeDriver and that you configure Laravel (DuskTestCase file) so that instead of attacking Dusk, it attacks ChromeDriver.