/
conf.ts
30 lines (28 loc) · 881 Bytes
/
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
import {Config, browser} from 'protractor';
export let config: Config = {
//Check the "app-root" for angular applications
rootElement: 'app',
seleniumAddress: 'http://localhost:4444/wd/hub',
allScriptsTimeout: 11000,
framework: 'custom',
frameworkPath: require.resolve('protractor-cucumber-framework'),
capabilities: {
browserName: 'chrome',
chromeOptions: {
args: ['incognito']
}
},
maxSessions: 1,
noGlobals: true,
onPrepare: () => {
browser.driver.manage().window().setSize(1400, 900);
},
// Base Url in SBX
baseUrl: 'https://angular-2-5-registration-login-example.stackblitz.io',
specs: ['../features/**/*.feature'],
cucumberOpts: {
require: 'step_definitions/*.js',
format: ['progress'],
'format-options': '{"colorsEnabled": true}'
}
};