laravel / dusk

Laravel Dusk provides simple end-to-end testing and browser automation.
https://laravel.com/docs/dusk
MIT License
1.87k stars 320 forks source link

Dusk slows down after call to dump() #1095

Closed damms005 closed 5 months ago

damms005 commented 5 months ago

Dusk Version

8.0.0

Laravel Version

10.48.2

PHP Version

8.2.8

PHPUnit Version

10.5.12

Database Driver & Version

mysql Ver 8.0.32 for Linux on x86_64 (MySQL Community Server - GPL)

Description

In a Sail project, when a test is dump()'ed, subsequent test runs takes minutes to complete, instead of seconds as in the first run.

Steps To Reproduce

Test code should look like the following

public function testExample(): void
{
    $this->browse(function (Browser $browser) {
        $browser->visit('/')
            ->dump('Laravel');
    });
}

On first test run, output should be similar to below:

driesvints commented 5 months ago

Thanks! @crynobone has sent in a PR to address this.