]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/e2e/wdio.local.conf.ts
Translated using Weblate (Czech)
[github/Chocobozzz/PeerTube.git] / client / e2e / wdio.local.conf.ts
1 import { config as mainConfig } from './wdio.main.conf'
2
3 const prefs = {
4 'intl.accept_languages': 'en'
5 }
6 process.env.LANG = 'en'
7
8 module.exports = {
9 config: {
10 ...mainConfig,
11
12 runner: 'local',
13
14 maxInstances: 2,
15
16 capabilities: [
17 {
18 browserName: 'chrome',
19 'goog:chromeOptions': {
20 args: [ '--headless', '--disable-gpu', '--window-size=1280,1024' ],
21 prefs
22 }
23 },
24 {
25 browserName: 'firefox',
26 'moz:firefoxOptions': {
27 binary: '/usr/bin/firefox-developer-edition',
28 args: [ '--headless', '--window-size=1280,1024' ],
29
30 prefs
31 }
32 }
33 ],
34
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 }
44 } as WebdriverIO.Config
45 }