-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathprotractor.js
43 lines (35 loc) · 914 Bytes
/
protractor.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
require('babel/register')({
stage: 0
});
require('mochawait');
exports.config = {
seleniumAddress: 'http://localhost:4444/wd/hub',
specs: ['e2e/**/*.e2e.js'],
framework: 'mocha',
onPrepare: function() {
browser.ignoreSynchronization = true;
browser.manage().timeouts().implicitlyWait(2000);
},
mochaOpts: {
reporter: 'spec',
timeout: 4000
},
params: {
login: {
email: '[email protected]',
password: 'testtest'
}
},
beforeLaunch: function() {
global.getCmp = function(name) {
return element(By.className(name));
};
global.byCss = function(css) {
return element(By.css(css));
};
var chai = require('chai');
var chaiAsPromised = require('chai-as-promised');
chai.use(chaiAsPromised);
chai.should();
}
};