Just keeping a list of gotchas around dusk.

use RefreshDatabase not working

Cost: 1 hour lost

Basically I had to go back to the slower “use DatabaseMigrations;” otherwise it would not work. The user was null.

Links: This thread helped

Headless or not

Cost: 1 hour lost or less

For some odd reasons my tests started coming up blank.

I turned off headless in this class DuskTestCase

    protected function driver()
        $args = [
        if (env("HEADLESS_OFF")) {
            $args = [
        $options = (new ChromeOptions)->addArguments($args);

        return RemoteWebDriver::create(

And this way it still works on travis.