-
Notifications
You must be signed in to change notification settings - Fork 14
/
conf.ts
45 lines (38 loc) · 1.35 KB
/
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
// Because this file imports from `protractor` npm package,
// you'll need to have it as a project dependency.
//
// `baseUrl` property is passed in as a param
import { Config, browser } from 'protractor';
import { SpecReporter } from 'jasmine-spec-reporter';
export let config: Config = {
allScriptsTimeout: 110000,
framework: 'jasmine',
capabilities: {
browserName: 'chrome'
},
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 150000,
print: function() {}
},
// Keep max browsers running to 1 because
// multiple browsers running at once was pausing/failing for no reason
maxSessions: 1,
// You could set no globals to true to avoid jQuery '$' and protractor '$'
// collisions on the global namespace.
noGlobals: true,
onPrepare: () => {
// Use `jasmine-spec-reporter` as the spec result reporter
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
// Set browser window width to 1200 and height to 900px
browser.driver.manage().window().setSize(1200, 900);
},
params: {
// baseUrl: 'https://dev43049.service-now.com/navpage.do'
baseUrl: 'http://www.thejamstop.com/user/login'
},
// specs: [ 'specs/**/*spec.js' ],
// specs: [ 'specs/**/login.spec.js' ],
specs: [ 'specs/**/register.spec.js' ],
seleniumAddress: 'http://localhost:4444/wd/hub'
};