-
Notifications
You must be signed in to change notification settings - Fork 80
/
protractor.conf.js
45 lines (40 loc) · 1.17 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
/* eslint-disable */
const { SpecReporter } = require('jasmine-spec-reporter');
const protractorImageComparison = require('protractor-image-comparison');
const getSpecs = (listSpec) => {
if (listSpec) {
return listSpec.split(',');
}
return ['components/**/*.functional-spec.js', 'test/kitchen-sink.functional-spec.js'];
};
exports.config = {
allScriptsTimeout: 120000,
specs: getSpecs(process.env.PROTRACTOR_SPECS),
SELENIUM_PROMISE_MANAGER: false,
capabilities: {
browserName: 'chrome'
},
directConnect: true,
baseUrl: 'http://localhost:4000/',
framework: 'jasmine2',
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 30000,
print: () => {}
},
onPrepare: () => {
browser.ignoreSynchronization = true;
browser.protractorImageComparison = new protractorImageComparison({
baselineFolder: './baseline/',
screenshotPath: './.tmp/',
autoSaveBaseline: true,
debug: false
});
jasmine.getEnv().addReporter(new SpecReporter({
spec: { displayStacktrace: false }
}));
return browser.getProcessedConfig().then((cap) => {
browser.browserName = cap.capabilities.browserName;
});
}
};