]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/e2e/wdio.local.conf.ts
Try to improve permanent live label
[github/Chocobozzz/PeerTube.git] / client / e2e / wdio.local.conf.ts
CommitLineData
3419e0e1
C
1import { config as mainConfig } from './wdio.main.conf'
2
3const prefs = {
4 'intl.accept_languages': 'en'
5}
6
7module.exports = {
8 config: {
9 ...mainConfig,
10
11 runner: 'local',
12
6d210220 13 maxInstances: 2,
3419e0e1
C
14
15 capabilities: [
16 {
17 browserName: 'chrome',
3419e0e1
C
18 'goog:chromeOptions': {
19 prefs
20 }
21 },
22 {
23 browserName: 'firefox',
24 'moz:firefoxOptions': {
3419e0e1
C
25 binary: '/usr/bin/firefox-developer-edition',
26 prefs
27 }
3419e0e1
C
28 }
29 ],
30
6d210220
C
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 }
3419e0e1
C
40 } as WebdriverIO.Config
41}