aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/e2e/wdio.local.conf.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-02-27 10:44:32 +0100
committerChocobozzz <me@florianbigard.com>2023-02-27 11:58:35 +0100
commit5b94394a1a6d471f897d14ac62fe7bec5f9a74c2 (patch)
tree2bc32ce7f620968f6eb5864f01b29af5a8869231 /client/e2e/wdio.local.conf.ts
parent2be1fecc99dbc788c01d8dea381126212960f8a1 (diff)
downloadPeerTube-5b94394a1a6d471f897d14ac62fe7bec5f9a74c2.tar.gz
PeerTube-5b94394a1a6d471f897d14ac62fe7bec5f9a74c2.tar.zst
PeerTube-5b94394a1a6d471f897d14ac62fe7bec5f9a74c2.zip
Fix E2E with firefox
Diffstat (limited to 'client/e2e/wdio.local.conf.ts')
-rw-r--r--client/e2e/wdio.local.conf.ts14
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 @@
1import { afterLocalSuite, beforeLocalSession, beforeLocalSuite } from './src/utils' 1import { afterLocalSuite, beforeLocalSession, beforeLocalSuite } from './src/utils'
2import { config as mainConfig } from './wdio.main.conf' 2import { config as mainConfig } from './wdio.main.conf'
3 3
4const prefs = { 4const prefs = { 'intl.accept_languages': 'en' }
5 'intl.accept_languages': 'en'
6}
7process.env.LANG = 'en' 5process.env.LANG = 'en'
8 6
7// https://github.com/mozilla/geckodriver/issues/1354#issuecomment-479456411
8process.env.MOZ_HEADLESS_WIDTH = '1280'
9process.env.MOZ_HEADLESS_HEIGHT = '1024'
10
11const windowSizeArg = `--window-size=${process.env.MOZ_HEADLESS_WIDTH},${process.env.MOZ_HEADLESS_HEIGHT}`
12
9module.exports = { 13module.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 }