added browser tests
linter / quality (push) Failing after 1m3s
tests / ci (8.3) (push) Failing after 49s
tests / ci (8.4) (push) Failing after 1m4s
tests / ci (8.5) (push) Failing after 1m5s

This commit is contained in:
Daan Meijer
2026-06-23 15:03:34 +02:00
parent 1e33bfb50b
commit a35b50bec6
15 changed files with 491 additions and 171 deletions
+4 -2
View File
@@ -7,6 +7,8 @@ use Facebook\WebDriver\Remote\DesiredCapabilities;
use Facebook\WebDriver\Remote\RemoteWebDriver;
use Laravel\Dusk\TestCase as BaseTestCase;
use Illuminate\Support\Collection;
abstract class DuskTestCase extends BaseTestCase
{
/**
@@ -26,13 +28,13 @@ abstract class DuskTestCase extends BaseTestCase
*/
protected function driver(): RemoteWebDriver
{
$options = (new ChromeOptions)->addArguments(collect([
$options = (new ChromeOptions)->addArguments((new Collection([
$this->shouldStartMaximized() ? '--start-maximized' : '--window-size=1920,1080',
'--disable-gpu',
'--headless=new',
'--no-sandbox',
'--disable-dev-shm-usage',
])->unless(static::runningInSail(), function (collect $arguments) {
]))->unless(static::runningInSail(), function (Collection $arguments) {
return $arguments->push('--disable-smooth-scrolling');
})->all());