mitechnologies
4 months ago

Laravel Dusk Fails on LV 5.8

Posted 4 months ago by mitechnologies

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

Please sign in or create an account to participate in this conversation.