forked from serenity-js/serenity-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprotractor.conf.js
52 lines (41 loc) · 1.15 KB
/
protractor.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
const localChromeConfig = {
chromeDriver: require(`chromedriver`).path,
directConnect: true,
capabilities: {
browserName: 'chrome',
acceptInsecureCerts : true,
loggingPrefs: {
browser: 'INFO',
},
'goog:chromeOptions': {
// As of version 75, ChromeDriver is W3C by default, which Protractor does not fully support.
w3c: false,
args: [
'--disable-web-security',
'--allow-file-access-from-files',
'--allow-file-access',
'--disable-infobars',
'--headless',
'--disable-gpu',
'--window-size=200x100',
]
},
}
}
module.exports = {
SELENIUM_PROMISE_MANAGER: false,
onPrepare: function() {
return browser.waitForAngularEnabled(false);
},
allScriptsTimeout: 120_000,
framework: 'mocha',
// specs: [ ], // set in module-specific protractor.conf.js
mochaOpts: {
timeout: 60_000,
require: [
'ts-node/register',
],
reporter: 'dot',
},
... localChromeConfig,
};