-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcodecept.conf.js
61 lines (58 loc) · 1.48 KB
/
codecept.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
61
const retus = require('retus')
const config = require('./config')
const timer = require('./lib/timer')
function getWebSocketDebuggerUrl() {
try {
return JSON.parse(retus('http://127.0.0.1:9222/json/version').body).webSocketDebuggerUrl
} catch (err) {
return ''
}
}
let webSocketDebuggerUrl = getWebSocketDebuggerUrl()
exports.config = {
name: 'openid-certification-automation',
output: './.out/openid-certification-automation',
tests: './index.js',
helpers: {
Puppeteer: {
getPageTimeout: timer.m('5s'),
keepBrowserState: true,
keepCookies: true,
restart: false,
// show: true,
show: !!webSocketDebuggerUrl,
url: config.getDecodedCurrentTestEngineUrl(),
waitForTimeout: timer.m('5s'),
windowSize: '1920x1080',
chrome: {
ignoreHTTPSErrors: true,
browserWSEndpoint: webSocketDebuggerUrl,
args: [
'--disable-gpu',
'--disable-web-security',
'--ignore-certificate-errors',
'--disable-web-security',
'--disable-infobars',
'--no-sandbox',
],
},
},
ChaiWrapper: {
require: 'codeceptjs-chai',
},
customHelper: {
require: './helper.js',
},
},
include: {
I: './custom_steps.js',
},
mocha: { bail: config.bail },
plugins: {
pauseOnFail: {},
retryFailedStep: { enabled: true },
screenshotOnFail: { enabled: true },
tryTo: { enabled: true },
retryTo: { enabled: true },
},
}