-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprotractor.conf.js
60 lines (50 loc) · 1.33 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
58
59
60
exports.config = {
allScriptsTimeout: 60000,
specs: [
'./e2e/modules/account/*.spec.ts',
'./e2e/modules/administration/*.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: 6000,
ui: 'bdd',
timeout: 60000
},
beforeLaunch () {
require('ts-node').register({
project: './tsconfig.e2e.json'
});
},
onPrepare () {
// @ts-ignore
browser.driver.manage().window().setSize(1280, 1024);
// @ts-ignore
browser.ignoreSynchronization = true;
// Disable animations
// @ts-ignore
browser.executeScript('document.body.className += " notransition";');
const chai = require('chai');
const chaiAsPromised = require('chai-as-promised');
chai.use(chaiAsPromised);
// @ts-ignore
global.chai = chai;
},
params: {
waitTimeoutInMillis: 10000,
logWaitErrors: false
}
};