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

mitechnologies's avatar

Laravel Dusk Fails on LV 5.8

Hi, recently I have been having an issue with laravel dusk

This is my test

class ManageUsersTest extends DuskTestCase { use DatabaseMigrations;

/**
 * A Dusk test example.
 *
 * @return void
 * @throws \Throwable
 * @test
 */
public function testing_login()
{
    $user = factory(User::class)->create([
        'email' => '[email protected]',
    ]);

    $this->browse(function ($browser) use ($user) {
        $browser->visit('/login')
            ->type('email', $user->email)
            ->type('password', 'secret')
            ->press('Login')
            ->assertPathIs('/home');
    });
}

If i use the dusk without options, on this way, works

php artisan dusk

But if i use the --filter option, on this way

php artisan dusk --filter testing_login

Curl error thrown for http DELETE to /session/3b8...

The information on database_dusk is created , the .env file is replaced by .env.dusk.local but it can close the session, and make a rollback

But if i use the --filter option, on this way

php artisan dusk --filter=testing_login

Facebook\WebDriver\Exception\WebDriverCurlException: Curl error thrown for http POST to /session/5b0...

I'm using Laravel -Valet in Linux

Laravel v 5.8 Dusk v 5.1 ChromeDriver 75.0.3770.90

Regards

0 likes
3 replies
jlrdw's avatar

@TAYLOROTWELL - Couldn't help but notice, you completed some lessons. Wow you wrote the framework. That Jeffrey does give good lessons.

P.S. You show as level 3, funny. Probably your level should be Not Applicable.

1 like

Please or to participate in this conversation.