]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/e2e/wdio.local-test.conf.ts
Update translations
[github/Chocobozzz/PeerTube.git] / client / e2e / wdio.local-test.conf.ts
index bc15123a03f8bb6b43ae4f4c5ddad243fce6eb27..96ddc67cace96242d173a0fa75fd38467f9b7a88 100644 (file)
@@ -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' ],