forked from mraible/21-points
-
Notifications
You must be signed in to change notification settings - Fork 0
/
protractor.conf.js
57 lines (46 loc) · 1.41 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
exports.config = {
allScriptsTimeout: 20000,
specs: [
'./e2e/account/**/*.spec.ts',
'./e2e/admin/**/*.spec.ts',
'./e2e/entities/**/*.spec.ts',
/* jhipster-needle-add-protractor-tests - JHipster will add protractors tests here */
],
capabilities: {
browserName: 'chrome',
chromeOptions: {
args: process.env.JHI_E2E_HEADLESS
? [ "--headless", "--disable-gpu", "--window-size=800,600" ]
: [ "--disable-gpu", "--window-size=800,600" ]
}
},
directConnect: true,
baseUrl: 'http://localhost:8080/',
framework: 'mocha',
SELENIUM_PROMISE_MANAGER: false,
mochaOpts: {
reporter: 'spec',
slow: 3000,
ui: 'bdd',
timeout: 720000
},
beforeLaunch: function() {
require('ts-node').register({
project: ''
});
},
onPrepare: function() {
browser.driver.manage().window().setSize(1280, 1024);
// Disable animations
// @ts-ignore
browser.executeScript('document.body.className += " notransition";');
const chai = require('chai');
const chaiAsPromised = require('chai-as-promised');
chai.use(chaiAsPromised);
const chaiString = require('chai-string');
chai.use(chaiString);
// @ts-ignore
global.chai = chai;
},
useAllAngular2AppRoots: true
};