-
Notifications
You must be signed in to change notification settings - Fork 0
/
protractor-cucumber.conf.ts
45 lines (45 loc) · 1.15 KB
/
protractor-cucumber.conf.ts
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
// Protractor configuration file, see link for more information
// https://github.com/angular/protractor/blob/master/lib/config.ts
/*jslint es6 */
import {
browser,
Config
} from 'protractor';
export let config: Config = {
allScriptsTimeout: 11000,
specs: [
'./cucumber/features/**/*.feature'
],
cucumberOpts: {
require: [
'./cucumber/steps/**/*.steps.ts',
'./cucumber/support/*.ts'
],
compiler: 'ts:ts-node/register',
tags: '@TypeScriptScenario or @CucumberScenario or @ProtractorScenario or ~@ignore',
format: [
'pretty',
'json:./cucumber/protractor-cucumber-report.json'
],
profile: false,
strict: true,
'no-source': true
},
capabilities: {
'browserName': 'chrome'
},
directConnect: true,
baseUrl: 'http://localhost:4200/',
framework: 'custom',
frameworkPath: require.resolve('protractor-cucumber-framework'),
useAllAngular2AppRoots: true,
beforeLaunch: function () {
require('ts-node').register({
project: 'cucumber/tsconfig.e2e.json'
});
},
onPrepare: () => {
browser.ignoreSynchronization = true;
browser.manage().window().maximize();
},
};