aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/e2e/wdio.local-test.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-test.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-test.conf.ts')
-rw-r--r--client/e2e/wdio.local-test.conf.ts26
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
9process.env.LANG = 'en' 9process.env.LANG = 'en'
10 10
11// https://github.com/mozilla/geckodriver/issues/1354#issuecomment-479456411
12process.env.MOZ_HEADLESS_WIDTH = '1280'
13process.env.MOZ_HEADLESS_HEIGHT = '1024'
14
15const windowSizeArg = `--window-size=${process.env.MOZ_HEADLESS_WIDTH},${process.env.MOZ_HEADLESS_HEIGHT}`
16
11module.exports = { 17module.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' ],