Skip to content

Commit

Permalink
Dusk fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalbaljet committed Nov 12, 2024
1 parent 6aa5114 commit 197596c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/run-table-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,12 @@ jobs:
run: |
cd app
npm run build
php artisan dusk:chrome-driver `/opt/google/chrome/chrome --version | cut -d " " -f3 | cut -d "." -f1`
php artisan dusk:chrome-driver --detect
- name: Start Chrome Driver
run: |
cd app
./vendor/laravel/dusk/bin/chromedriver-linux &
./vendor/laravel/dusk/bin/chromedriver-linux --port=9515 &
- name: Start SSR server
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,12 @@ jobs:
run: |
cd app
npm run build
php artisan dusk:chrome-driver `/opt/google/chrome/chrome --version | cut -d " " -f3 | cut -d "." -f1`
php artisan dusk:chrome-driver --detect
- name: Start Chrome Driver
run: |
cd app
./vendor/laravel/dusk/bin/chromedriver-linux &
./vendor/laravel/dusk/bin/chromedriver-linux --port=9515 &
- name: Start Laravel Reverb
run: |
Expand Down
7 changes: 3 additions & 4 deletions app/tests/DuskTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,15 @@ protected function driver()
])->unless($this->hasHeadlessDisabled(), function ($items) {
return $items->merge([
'--disable-gpu',
'--headless',
'--headless=new',
]);
})->all());

return RemoteWebDriver::create(
$_ENV['DUSK_DRIVER_URL'] ?? 'http://localhost:9515',
DesiredCapabilities::chrome()->setCapability(
ChromeOptions::CAPABILITY,
$options
)
ChromeOptions::CAPABILITY, $options
)->setCapability('goog:loggingPrefs', ['browser' => 'ALL'])
);
}
}

0 comments on commit 197596c

Please sign in to comment.