X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fe2e%2Fwdio.local-test.conf.ts;h=96ddc67cace96242d173a0fa75fd38467f9b7a88;hb=51afea54116192c99621c5758b8f9154a4218f9f;hp=bc15123a03f8bb6b43ae4f4c5ddad243fce6eb27;hpb=a2be43f5700460d3afdc194abc788690b79e66cd;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/e2e/wdio.local-test.conf.ts b/client/e2e/wdio.local-test.conf.ts index bc15123a0..96ddc67ca 100644 --- a/client/e2e/wdio.local-test.conf.ts +++ b/client/e2e/wdio.local-test.conf.ts @@ -8,6 +8,12 @@ const prefs = { // Chrome headless does not support prefs process.env.LANG = 'en' +// https://github.com/mozilla/geckodriver/issues/1354#issuecomment-479456411 +process.env.MOZ_HEADLESS_WIDTH = '1280' +process.env.MOZ_HEADLESS_HEIGHT = '1024' + +const windowSizeArg = `--window-size=${process.env.MOZ_HEADLESS_WIDTH},${process.env.MOZ_HEADLESS_HEIGHT}` + module.exports = { config: { ...mainConfig, @@ -19,22 +25,22 @@ module.exports = { capabilities: [ { - browserName: 'chrome', - acceptInsecureCerts: true, + 'browserName': 'chrome', + 'acceptInsecureCerts': true, 'goog:chromeOptions': { - args: [ '--disable-gpu', '--window-size=1280,1024' ], + args: [ '--disable-gpu', windowSizeArg ], + prefs + } + }, + { + 'browserName': 'firefox', + 'moz:firefoxOptions': { + binary: '/usr/bin/firefox-developer-edition', + args: [ '--headless', windowSizeArg ], + prefs } } - // { - // browserName: 'firefox', - // 'moz:firefoxOptions': { - // binary: '/usr/bin/firefox-developer-edition', - // args: [ '--headless', '--window-size=1280,1024' ], - - // prefs - // } - // } ], services: [ 'chromedriver', 'geckodriver', 'shared-store' ],