diff options
Diffstat (limited to 'client/e2e/wdio.local-test.conf.ts')
-rw-r--r-- | client/e2e/wdio.local-test.conf.ts | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/client/e2e/wdio.local-test.conf.ts b/client/e2e/wdio.local-test.conf.ts index bc15123a0..3c19e4e9a 100644 --- a/client/e2e/wdio.local-test.conf.ts +++ b/client/e2e/wdio.local-test.conf.ts | |||
@@ -8,6 +8,12 @@ const prefs = { | |||
8 | // Chrome headless does not support prefs | 8 | // Chrome headless does not support prefs |
9 | process.env.LANG = 'en' | 9 | process.env.LANG = 'en' |
10 | 10 | ||
11 | // https://github.com/mozilla/geckodriver/issues/1354#issuecomment-479456411 | ||
12 | process.env.MOZ_HEADLESS_WIDTH = '1280' | ||
13 | process.env.MOZ_HEADLESS_HEIGHT = '1024' | ||
14 | |||
15 | const windowSizeArg = `--window-size=${process.env.MOZ_HEADLESS_WIDTH},${process.env.MOZ_HEADLESS_HEIGHT}` | ||
16 | |||
11 | module.exports = { | 17 | module.exports = { |
12 | config: { | 18 | config: { |
13 | ...mainConfig, | 19 | ...mainConfig, |
@@ -22,19 +28,19 @@ module.exports = { | |||
22 | browserName: 'chrome', | 28 | browserName: 'chrome', |
23 | acceptInsecureCerts: true, | 29 | acceptInsecureCerts: true, |
24 | 'goog:chromeOptions': { | 30 | 'goog:chromeOptions': { |
25 | args: [ '--disable-gpu', '--window-size=1280,1024' ], | 31 | args: [ '--disable-gpu', windowSizeArg ], |
32 | prefs | ||
33 | } | ||
34 | }, | ||
35 | { | ||
36 | browserName: 'firefox', | ||
37 | 'moz:firefoxOptions': { | ||
38 | binary: '/usr/bin/firefox-developer-edition', | ||
39 | args: [ '--headless', windowSizeArg ], | ||
40 | |||
26 | prefs | 41 | prefs |
27 | } | 42 | } |
28 | } | 43 | } |
29 | // { | ||
30 | // browserName: 'firefox', | ||
31 | // 'moz:firefoxOptions': { | ||
32 | // binary: '/usr/bin/firefox-developer-edition', | ||
33 | // args: [ '--headless', '--window-size=1280,1024' ], | ||
34 | |||
35 | // prefs | ||
36 | // } | ||
37 | // } | ||
38 | ], | 44 | ], |
39 | 45 | ||
40 | services: [ 'chromedriver', 'geckodriver', 'shared-store' ], | 46 | services: [ 'chromedriver', 'geckodriver', 'shared-store' ], |