]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame_incremental - client/e2e/wdio.local-test.conf.ts
Fix local E2E tests
[github/Chocobozzz/PeerTube.git] / client / e2e / wdio.local-test.conf.ts
... / ...
CommitLineData
1import { afterLocalSuite, beforeLocalSuite, beforeLocalSession } from './src/utils'
2import { config as mainConfig } from './wdio.main.conf'
3
4const prefs = {
5 'intl.accept_languages': 'en'
6}
7
8// Chrome headless does not support prefs
9process.env.LANG = 'en'
10
11module.exports = {
12 config: {
13 ...mainConfig,
14
15 runner: 'local',
16
17 maxInstances: 1,
18 specFileRetries: 0,
19
20 capabilities: [
21 {
22 browserName: 'chrome',
23 acceptInsecureCerts: true,
24 'goog:chromeOptions': {
25 args: [ '--disable-gpu', '--window-size=1280,1024' ],
26 prefs
27 }
28 }
29 ],
30
31 services: [ 'chromedriver' ],
32
33 beforeSession: beforeLocalSession,
34 beforeSuite: beforeLocalSuite,
35 afterSuite: afterLocalSuite
36 } as WebdriverIO.Config
37}