-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathwdio.conf.js
60 lines (59 loc) · 1.42 KB
/
wdio.conf.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
const path = require('path');
module.exports = {
config: {
autoCompileOpts: {
autoCompile: true,
tsNodeOpts: {
project: 'test/web-extension/tsconfig.json',
transpileOnly: true
}
},
bail: 0,
baseUrl: 'http://localhost:4567',
capabilities: [
{
acceptInsecureCerts: true,
browserName: 'chrome',
'goog:chromeOptions': {
args: [
`--load-extension=${path.join(__dirname, 'dist')}`,
'--disable-gpu',
'--no-sandbox',
'--enable-automation',
'--no-first-run',
'--no-default-browser-check',
'--disable-web-security',
'--allow-insecure-localhost'
]
},
maxInstances: 1
}
],
connectionRetryCount: 3,
connectionRetryTimeout: 120_000,
exclude: [],
filesToWatch: [path.join(__dirname, 'dist')],
framework: 'mocha',
logLevel: 'info',
maxInstances: 1,
mochaOpts: {
timeout: 60_000,
ui: 'bdd'
},
reporters: ['spec'],
services: [
[
'static-server',
{
folders: [
{ mount: '/', path: path.join(__dirname, 'dapp/build') },
{ mount: '/cip95-cardano-wallet-connector', path: path.join(__dirname, 'dapp-cip95/build') }
]
}
],
'chromedriver'
],
specs: ['./**/*.spec.ts'],
waitforTimeout: 10_000
}
};