-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwdio.conf.ts
38 lines (37 loc) · 961 Bytes
/
wdio.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
const seleniumArgs = {
version: '3.8.1',
drivers: {
chrome: {
version: '2.36',
},
},
};
export const config = {
framework: 'jasmine',
jasmineNodeOpts: {
defaultTimeoutInterval: 240000,
includeStackTrace: true,
isVerbose: true,
},
specs: ['./dist/test/*Tests.js'],
services: ['selenium-standalone'],
maxInstances: 1,
baseUrl: 'https://www.google.com',
waitforTimeout: 15000,
capabilities: [{
/**
* maxInstances can get overwritten per capability. So if you have an in-house Selenium
* grid with only 5 firefox instance available you can make sure that not more than
* 5 instance gets started at a time.
*/
browserName: 'chrome',
chromeOptions: {
args: ['--no-sandbox', '--disable-gpu', '--window-size=1280,1024'],
},
}],
seleniumArgs,
seleniumInstallArgs: seleniumArgs,
async afterTest(test: any) {
console.log(`===\n${JSON.stringify(test)}\n===`);
},
};