diff options
author | Chocobozzz <me@florianbigard.com> | 2021-09-03 10:27:04 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-09-03 16:35:18 +0200 |
commit | 6d210220be0875d63461829d83c6e3a59d05cf7a (patch) | |
tree | 60ec5b596ef06295b70ebb553920a39b549e0f13 /client/e2e/wdio.local.conf.ts | |
parent | 2ede07153ce0282b116345dfee09bff902355a75 (diff) | |
download | PeerTube-6d210220be0875d63461829d83c6e3a59d05cf7a.tar.gz PeerTube-6d210220be0875d63461829d83c6e3a59d05cf7a.tar.zst PeerTube-6d210220be0875d63461829d83c6e3a59d05cf7a.zip |
Fix NSFW filter and add tests
Diffstat (limited to 'client/e2e/wdio.local.conf.ts')
-rw-r--r-- | client/e2e/wdio.local.conf.ts | 22 |
1 files changed, 10 insertions, 12 deletions
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 = { | |||
10 | 10 | ||
11 | runner: 'local', | 11 | runner: 'local', |
12 | 12 | ||
13 | maxInstances: 1, | 13 | maxInstances: 2, |
14 | 14 | ||
15 | capabilities: [ | 15 | capabilities: [ |
16 | { | 16 | { |
17 | browserName: 'chrome', | 17 | browserName: 'chrome', |
18 | acceptInsecureCerts: true, | ||
19 | 'goog:chromeOptions': { | 18 | 'goog:chromeOptions': { |
20 | prefs | 19 | prefs |
21 | } | 20 | } |
@@ -23,21 +22,20 @@ module.exports = { | |||
23 | { | 22 | { |
24 | browserName: 'firefox', | 23 | browserName: 'firefox', |
25 | 'moz:firefoxOptions': { | 24 | 'moz:firefoxOptions': { |
26 | // args: [ '-headless' ], | ||
27 | binary: '/usr/bin/firefox-developer-edition', | 25 | binary: '/usr/bin/firefox-developer-edition', |
28 | prefs | 26 | prefs |
29 | } | 27 | } |
30 | }, | ||
31 | { | ||
32 | browserName: 'firefox', | ||
33 | 'moz:firefoxOptions': { | ||
34 | // args: [ '-headless' ], | ||
35 | binary: '/usr/bin/firefox-esr', | ||
36 | prefs | ||
37 | } | ||
38 | } | 28 | } |
39 | ], | 29 | ], |
40 | 30 | ||
41 | services: [ 'chromedriver', 'geckodriver' ] | 31 | services: [ 'chromedriver', 'geckodriver' ], |
32 | |||
33 | beforeSession: function (config, capabilities) { | ||
34 | if (capabilities['browserName'] === 'chrome') { | ||
35 | config.baseUrl = 'http://localhost:9001' | ||
36 | } else { | ||
37 | config.baseUrl = 'http://localhost:9002' | ||
38 | } | ||
39 | } | ||
42 | } as WebdriverIO.Config | 40 | } as WebdriverIO.Config |
43 | } | 41 | } |