diff options
author | Chocobozzz <me@florianbigard.com> | 2021-08-30 16:24:25 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-09-01 15:06:46 +0200 |
commit | 3419e0e1fe8e48a08b63ca0ded31087f913eb2b6 (patch) | |
tree | 63ac7190b79194e93aec9bbfd3c336e60f469e9d /client/e2e/wdio.local.conf.ts | |
parent | 2a4c9669d2d6ac6cd4ae43544698f826ae98080f (diff) | |
download | PeerTube-3419e0e1fe8e48a08b63ca0ded31087f913eb2b6.tar.gz PeerTube-3419e0e1fe8e48a08b63ca0ded31087f913eb2b6.tar.zst PeerTube-3419e0e1fe8e48a08b63ca0ded31087f913eb2b6.zip |
Migrate to webdriverio
Diffstat (limited to 'client/e2e/wdio.local.conf.ts')
-rw-r--r-- | client/e2e/wdio.local.conf.ts | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/client/e2e/wdio.local.conf.ts b/client/e2e/wdio.local.conf.ts new file mode 100644 index 000000000..4071aa249 --- /dev/null +++ b/client/e2e/wdio.local.conf.ts | |||
@@ -0,0 +1,43 @@ | |||
1 | import { config as mainConfig } from './wdio.main.conf' | ||
2 | |||
3 | const prefs = { | ||
4 | 'intl.accept_languages': 'en' | ||
5 | } | ||
6 | |||
7 | module.exports = { | ||
8 | config: { | ||
9 | ...mainConfig, | ||
10 | |||
11 | runner: 'local', | ||
12 | |||
13 | maxInstances: 1, | ||
14 | |||
15 | capabilities: [ | ||
16 | { | ||
17 | browserName: 'chrome', | ||
18 | acceptInsecureCerts: true, | ||
19 | 'goog:chromeOptions': { | ||
20 | prefs | ||
21 | } | ||
22 | }, | ||
23 | { | ||
24 | browserName: 'firefox', | ||
25 | 'moz:firefoxOptions': { | ||
26 | // args: [ '-headless' ], | ||
27 | binary: '/usr/bin/firefox-developer-edition', | ||
28 | prefs | ||
29 | } | ||
30 | }, | ||
31 | { | ||
32 | browserName: 'firefox', | ||
33 | 'moz:firefoxOptions': { | ||
34 | // args: [ '-headless' ], | ||
35 | binary: '/usr/bin/firefox-esr', | ||
36 | prefs | ||
37 | } | ||
38 | } | ||
39 | ], | ||
40 | |||
41 | services: [ 'chromedriver', 'geckodriver' ] | ||
42 | } as WebdriverIO.Config | ||
43 | } | ||