Use geckodriver 0.30 for firefox until 0.31 works

This commit is contained in:
Filip Proborszcz 2022-05-02 15:13:42 +02:00
parent a8f6208561
commit 4705bf823a
2 changed files with 5 additions and 4 deletions

View file

@ -166,11 +166,11 @@ jobs:
services:
selenium:
image: selenium/standalone-${{ matrix.browser }}
# geckodriver-0.31 seems to have problems as of 2022 May 1
image: selenium/standalone-${{ matrix.browser == 'firefox' && 'firefox:99.0-geckodriver-0.30-20220427' || matrix.browser }}
ports:
- 4444:4444
volumes: # share shm with host: https://stackoverflow.com/questions/53902507/unknown-error-session-deleted-because-of-page-crash-from-unknown-error-cannot
- /dev/shm:/dev/shm
options: --shm-size=2gb
steps:
- uses: actions/checkout@v2

View file

@ -21,7 +21,8 @@ exports.config = {
browserName: (process.env.BROWSER || 'chrome'),
}
],
services: process.env.DOCKER_HOST ? [] : ['selenium-standalone'],
// geckodriver-0.31 seems to have problems as of 2022 May 1
services: process.env.DOCKER_HOST ? [] : [ ['selenium-standalone', { drivers: { firefox: '0.30.0', chrome: 'latest' } } ] ],
logLevel: 'info',
bail: 0,
screenshotPath: SCREENSHOT_PATH,