forked from codeceptjs/CodeceptJS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcodecept.WebDriver.js
44 lines (43 loc) · 1017 Bytes
/
codecept.WebDriver.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
const TestHelper = require('../support/TestHelper')
module.exports.config = {
tests: './*_test.js',
timeout: 20,
output: './output',
helpers: {
WebDriver: {
url: TestHelper.siteUrl(),
browser: 'chrome',
host: TestHelper.seleniumHost(),
port: TestHelper.seleniumPort(),
// disableScreenshots: true,
desiredCapabilities: {
chromeOptions: {
args: ['--headless', '--disable-gpu', '--window-size=500,700'],
},
},
},
ScreenshotSessionHelper: {
require: '../support/ScreenshotSessionHelper.js',
outputPath: './output',
},
Expect: {
require: '@codeceptjs/expect-helper',
},
},
include: {},
bootstrap: async () =>
new Promise(done => {
setTimeout(done, 5000)
}), // let's wait for selenium
mocha: {},
name: 'acceptance',
plugins: {
screenshotOnFail: {
enabled: true,
},
},
gherkin: {
features: './gherkin/*.feature',
steps: ['./gherkin/steps.js'],
},
}