Refactor Chrome Driver port in browser-tests.yml and DuskTestCase.php
This commit is contained in:
parent
8e8752a937
commit
cbff462a5a
2 changed files with 2 additions and 2 deletions
2
.github/workflows/browser-tests.yml
vendored
2
.github/workflows/browser-tests.yml
vendored
|
|
@ -44,7 +44,7 @@ jobs:
|
||||||
- name: Install Chrome binaries
|
- name: Install Chrome binaries
|
||||||
run: php artisan dusk:chrome-driver --detect
|
run: php artisan dusk:chrome-driver --detect
|
||||||
- name: Start Chrome Driver
|
- name: Start Chrome Driver
|
||||||
run: ./vendor/laravel/dusk/bin/chromedriver-linux &
|
run: ./vendor/laravel/dusk/bin/chromedriver-linux --port=4444 &
|
||||||
- name: Build assets
|
- name: Build assets
|
||||||
run: npm install && npm run build
|
run: npm install && npm run build
|
||||||
- name: Run Laravel Server
|
- name: Run Laravel Server
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ protected function driver(): RemoteWebDriver
|
||||||
})->all());
|
})->all());
|
||||||
|
|
||||||
return RemoteWebDriver::create(
|
return RemoteWebDriver::create(
|
||||||
'http://localhost:9515',
|
'http://localhost:4444',
|
||||||
DesiredCapabilities::chrome()->setCapability(
|
DesiredCapabilities::chrome()->setCapability(
|
||||||
ChromeOptions::CAPABILITY,
|
ChromeOptions::CAPABILITY,
|
||||||
$options
|
$options
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue