Browse Source

Add webdriver setting in phpunit.xml.

pull/886/head
Rosie Le Faive 2 years ago
parent
commit
07e3c49ecc
  1. 2
      .github/workflows/build-2.x.yml
  2. 2
      phpunit.xml

2
.github/workflows/build-2.x.yml

@ -125,7 +125,7 @@ jobs:
- name: Start chromedriver - name: Start chromedriver
run: | run: |
export DISPLAY=:99 export DISPLAY=:99
chromedriver --port=4444 --no-sandbox & chromedriver --port=4444 --no-sandbox --url-base=/wd/hub &
- name: PHPUNIT tests - name: PHPUNIT tests
run: | run: |

2
phpunit.xml

@ -47,7 +47,7 @@
<!-- Example for changing the driver args to phantomjs tests MINK_DRIVER_ARGS_PHANTOMJS value: '["http://127.0.0.1:8510"]' --> <!-- Example for changing the driver args to phantomjs tests MINK_DRIVER_ARGS_PHANTOMJS value: '["http://127.0.0.1:8510"]' -->
<env name="MINK_DRIVER_ARGS_PHANTOMJS" value=""/> <env name="MINK_DRIVER_ARGS_PHANTOMJS" value=""/>
<!-- Example for changing the driver args to webdriver tests MINK_DRIVER_ARGS_WEBDRIVER value: '["chrome", { "chromeOptions": { "w3c": false } }, "http://localhost:4444/wd/hub"]' For using the Firefox browser, replace "chrome" with "firefox" --> <!-- Example for changing the driver args to webdriver tests MINK_DRIVER_ARGS_WEBDRIVER value: '["chrome", { "chromeOptions": { "w3c": false } }, "http://localhost:4444/wd/hub"]' For using the Firefox browser, replace "chrome" with "firefox" -->
<env name="MINK_DRIVER_ARGS_WEBDRIVER" value=""/> <env name="MINK_DRIVER_ARGS_WEBDRIVER" value='["chrome", { "chromeOptions": { "w3c": false } }, "http://localhost:4444/wd/hub"]'/>
</php> </php>
<testsuites> <testsuites>
<testsuite name="unit"> <testsuite name="unit">

Loading…
Cancel
Save