-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprotractor-ljo.config.js
44 lines (44 loc) · 1.23 KB
/
protractor-ljo.config.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
// Protractor configuration file, see link for more information
// https://github.com/angular/protractor/blob/master/docs/referenceConf.js
'use strict';
exports.config = {
allScriptsTimeout: 60000,
getPageTimeout: 60000,
specs: [
'./e2e/matka/features/**/*.feature'
],
capabilities: {
'browserName': 'phantomjs',
'phantomjs.binary.path': require('phantomjs-prebuilt').path,
'phantomjs.ghostdriver.cli.args': ['--loglevel=DEBUG'],
debug: true
},
directConnect: false,
baseUrl: 'http://localhost:4200/',
framework: 'custom',
frameworkPath: require.resolve('protractor-cucumber-framework'),
useAllAngular2AppRoots: true,
cucumberOpts: {
require: [
'./e2e/matka/stepdefinitions/**/*.steps.ts', './e2e/support/*.ts'
],
compiler: 'ts:ts-node/register',
tags: '@TypeScriptScenario or @CucumberScenario or @ProtractorScenario or ~@ignore',
format: [
'pretty',
'json:./e2e/protractor-cucumber-report.json'
],
profile: false,
strict: true,
'no-source': true
},
beforeLaunch: function () {
require('ts-node').register({
project: 'e2e'
});
},
onPrepare: () => {
browser.ignoreSynchronization = true;
browser.manage().window().maximize();
},
};