X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fe2e%2Fwdio.local.conf.ts;h=a4c517f5e303cb169b844b59f1f03018719e3ae2;hb=3eb7ee658db32d270553046eeb77afc679a71466;hp=4071aa2498896b1fbba130d8b3e1b9d8cbadf718;hpb=3419e0e1fe8e48a08b63ca0ded31087f913eb2b6;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/e2e/wdio.local.conf.ts b/client/e2e/wdio.local.conf.ts index 4071aa249..a4c517f5e 100644 --- a/client/e2e/wdio.local.conf.ts +++ b/client/e2e/wdio.local.conf.ts @@ -10,12 +10,11 @@ module.exports = { runner: 'local', - maxInstances: 1, + maxInstances: 2, capabilities: [ { browserName: 'chrome', - acceptInsecureCerts: true, 'goog:chromeOptions': { prefs } @@ -23,21 +22,20 @@ module.exports = { { browserName: 'firefox', 'moz:firefoxOptions': { - // args: [ '-headless' ], binary: '/usr/bin/firefox-developer-edition', prefs } - }, - { - browserName: 'firefox', - 'moz:firefoxOptions': { - // args: [ '-headless' ], - binary: '/usr/bin/firefox-esr', - prefs - } } ], - services: [ 'chromedriver', 'geckodriver' ] + services: [ 'chromedriver', 'geckodriver' ], + + beforeSession: function (config, capabilities) { + if (capabilities['browserName'] === 'chrome') { + config.baseUrl = 'http://localhost:9001' + } else { + config.baseUrl = 'http://localhost:9002' + } + } } as WebdriverIO.Config }