From 6d210220be0875d63461829d83c6e3a59d05cf7a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 3 Sep 2021 10:27:04 +0200 Subject: Fix NSFW filter and add tests --- client/e2e/wdio.local.conf.ts | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'client/e2e/wdio.local.conf.ts') 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 } -- cgit v1.2.3