]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/e2e/wdio.local.conf.ts
Translated using Weblate (Thai)
[github/Chocobozzz/PeerTube.git] / client / e2e / wdio.local.conf.ts
index 43b820ca6c1a5b7076fa04e0c0672fd3416b440e..27c6e867bf10417afc57a94c3e5c2cc44328c1fc 100644 (file)
@@ -1,3 +1,4 @@
+import { afterLocalSuite, beforeLocalSession, beforeLocalSuite } from './src/utils'
 import { config as mainConfig } from './wdio.main.conf'
 
 const prefs = {
@@ -11,7 +12,7 @@ module.exports = {
 
     runner: 'local',
 
-    maxInstances: 2,
+    maxInstancesPerCapability: 1,
 
     capabilities: [
       {
@@ -32,14 +33,10 @@ module.exports = {
       }
     ],
 
-    services: [ 'chromedriver', 'geckodriver' ],
+    services: [ 'chromedriver', 'geckodriver', 'shared-store' ],
 
-    beforeSession: function (config, capabilities) {
-      if (capabilities['browserName'] === 'chrome') {
-        config.baseUrl = 'http://localhost:9001'
-      } else {
-        config.baseUrl = 'http://localhost:9002'
-      }
-    }
+    beforeSession: beforeLocalSession,
+    beforeSuite: beforeLocalSuite,
+    afterSuite: afterLocalSuite
   } as WebdriverIO.Config
 }