]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/e2e/wdio.local.conf.ts
Remove uneeded function
[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}
450de91e 6process.env.LANG = 'en'
3419e0e1
C
7
8module.exports = {
9 config: {
10 ...mainConfig,
11
12 runner: 'local',
13
6d210220 14 maxInstances: 2,
3419e0e1
C
15
16 capabilities: [
17 {
18 browserName: 'chrome',
3419e0e1 19 'goog:chromeOptions': {
450de91e 20 args: [ '--headless', '--disable-gpu', '--window-size=1280,1024' ],
3419e0e1
C
21 prefs
22 }
23 },
24 {
25 browserName: 'firefox',
26 'moz:firefoxOptions': {
3419e0e1 27 binary: '/usr/bin/firefox-developer-edition',
450de91e
C
28 args: [ '--headless', '--window-size=1280,1024' ],
29
3419e0e1
C
30 prefs
31 }
3419e0e1
C
32 }
33 ],
34
6d210220
C
35 services: [ 'chromedriver', 'geckodriver' ],
36
37 beforeSession: function (config, capabilities) {
38 if (capabilities['browserName'] === 'chrome') {
39 config.baseUrl = 'http://localhost:9001'
40 } else {
41 config.baseUrl = 'http://localhost:9002'
42 }
43 }
3419e0e1
C
44 } as WebdriverIO.Config
45}