-
Notifications
You must be signed in to change notification settings - Fork 1
/
protractor.conf.js
41 lines (32 loc) · 1.16 KB
/
protractor.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
exports.config = {
sauceUser: process.env.SAUCE_USERNAME,
sauceKey: process.env.SAUCE_ACCESS_KEY,
capabilities: {
'tunnel-identifier': process.env.TRAVIS_JOB_NUMBER,
'build': process.env.TRAVIS_BUILD_NUMBER,
'name': "PHP " + process.env.TRAVIS_PHP_VERSION + "-" + process.env.TRAVIS_COMMIT_MSG
},
// If we're in travis, use sauce, otherwise use local selenium
seleniumAddress: process.env.TRAVIS_JOB_NUMBER ? null : 'http://localhost:4444/wd/hub',
// Spec patterns are relative to the current working directly when
// protractor is called.
specs: [
'tests/client/e2e/login.spec.js',
'tests/client/e2e/layout.spec.js',
'tests/client/e2e/home.spec.js',
'tests/client/e2e/document.spec.js',
'tests/client/e2e/logged-in/document.spec.js'
],
baseUrl: 'http://0.0.0.0:8100',
rootElement: 'html',
// This was added to prevent sync timeouts that were happening on travis
allScriptsTimeout: 60000,
getPageTimeout: 60000,
onPrepare: function() {
browser.driver.manage().window().setSize(1024, 768);
}
// Options to be passed to Jasmine-node.
// jasmineNodeOpts: {
// defaultTimeoutInterval: 100000
// }
};