more tests fixes

This commit is contained in:
Mark Gregory
2026-06-17 07:35:03 +01:00
parent 2c2af4c50e
commit 5ec593e802
5 changed files with 62 additions and 46 deletions
+5 -2
View File
@@ -30,13 +30,15 @@ abstract class DuskTestCase extends BaseTestCase
*/
protected function driver(): RemoteWebDriver
{
$options = (new ChromeOptions)->addArguments([
$options = (new ChromeOptions())->addArguments([
'--disable-gpu',
'--headless=new',
'--window-size=1920,1080',
'--no-sandbox',
'--disable-dev-shm-usage',
'--disable-search-engine-choice-screen',
'--ignore-certificate-errors',
'--allow-insecure-localhost',
]);
return RemoteWebDriver::create(
@@ -80,7 +82,8 @@ abstract class DuskTestCase extends BaseTestCase
));
usort($candidates, static function (string $left, string $right): int {
$score = static fn (string $path): int => str_contains($path, 'mac-arm64') ? 0
$score = static fn (string $path): int =>
str_contains($path, 'mac-arm64') ? 0
: (str_contains($path, 'mac-arm') ? 1
: (str_contains($path, 'mac') ? 2 : 3));