-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprotractor-cucumber.conf.js
45 lines (39 loc) · 1.11 KB
/
protractor-cucumber.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
exports.config = {
framework: 'custom',
frameworkPath: require.resolve('protractor-cucumber-framework'),
cucumberOpts: {
require: ['./e2e/features/step_definitions/*.step.js', './e2e/features/support/*.js']
},
specs: ['./e2e/features/*.feature'],
multiCapabilities: [{
browserName: 'chrome',
shardTestFiles: true,
maxInstances: 1,
splitTestsBetweenCapabilities: true,
chromeOptions: {args: ['--start-maximized']}
}, {
browserName: 'chrome',
shardTestFiles: true,
maxInstances: 1,
splitTestsBetweenCapabilities: true,
chromeOptions: {args: ['--window-size=320,480']}
}, {
browserName: 'chrome',
shardTestFiles: true,
maxInstances: 1,
splitTestsBetweenCapabilities: true,
chromeOptions: {args: ['--window-size=768,1024']}
}, {
browserName: 'safari'
}, {
browserName: 'firefox'
}],
baseUrl: 'http://localhost:8100/',
useAllAngular2AppRoots: true,
beforeLaunch: function() {
require('ts-node').register({
project: 'e2e/tsconfig.e2e.json'
});
require('connect')().use(require('serve-static')('www')).listen(8100);
}
};