diff options
Diffstat (limited to 'client/e2e/wdio.local.conf.ts')
-rw-r--r-- | client/e2e/wdio.local.conf.ts | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/client/e2e/wdio.local.conf.ts b/client/e2e/wdio.local.conf.ts index 27c6e867b..903235b86 100644 --- a/client/e2e/wdio.local.conf.ts +++ b/client/e2e/wdio.local.conf.ts | |||
@@ -1,11 +1,15 @@ | |||
1 | import { afterLocalSuite, beforeLocalSession, beforeLocalSuite } from './src/utils' | 1 | import { afterLocalSuite, beforeLocalSession, beforeLocalSuite } from './src/utils' |
2 | import { config as mainConfig } from './wdio.main.conf' | 2 | import { config as mainConfig } from './wdio.main.conf' |
3 | 3 | ||
4 | const prefs = { | 4 | const prefs = { 'intl.accept_languages': 'en' } |
5 | 'intl.accept_languages': 'en' | ||
6 | } | ||
7 | process.env.LANG = 'en' | 5 | process.env.LANG = 'en' |
8 | 6 | ||
7 | // https://github.com/mozilla/geckodriver/issues/1354#issuecomment-479456411 | ||
8 | process.env.MOZ_HEADLESS_WIDTH = '1280' | ||
9 | process.env.MOZ_HEADLESS_HEIGHT = '1024' | ||
10 | |||
11 | const windowSizeArg = `--window-size=${process.env.MOZ_HEADLESS_WIDTH},${process.env.MOZ_HEADLESS_HEIGHT}` | ||
12 | |||
9 | module.exports = { | 13 | module.exports = { |
10 | config: { | 14 | config: { |
11 | ...mainConfig, | 15 | ...mainConfig, |
@@ -18,7 +22,7 @@ module.exports = { | |||
18 | { | 22 | { |
19 | browserName: 'chrome', | 23 | browserName: 'chrome', |
20 | 'goog:chromeOptions': { | 24 | 'goog:chromeOptions': { |
21 | args: [ '--headless', '--disable-gpu', '--window-size=1280,1024' ], | 25 | args: [ '--headless', '--disable-gpu', windowSizeArg ], |
22 | prefs | 26 | prefs |
23 | } | 27 | } |
24 | }, | 28 | }, |
@@ -26,7 +30,7 @@ module.exports = { | |||
26 | browserName: 'firefox', | 30 | browserName: 'firefox', |
27 | 'moz:firefoxOptions': { | 31 | 'moz:firefoxOptions': { |
28 | binary: '/usr/bin/firefox-developer-edition', | 32 | binary: '/usr/bin/firefox-developer-edition', |
29 | args: [ '--headless', '--window-size=1280,1024' ], | 33 | args: [ '--headless', windowSizeArg ], |
30 | 34 | ||
31 | prefs | 35 | prefs |
32 | } | 36 | } |