-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathcodecept.conf.ts
More file actions
37 lines (35 loc) · 824 Bytes
/
codecept.conf.ts
File metadata and controls
37 lines (35 loc) · 824 Bytes
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
require('ts-node/register')
const { setHeadlessWhen } = require('@codeceptjs/configure');
const { bootstrap } = require('./presettings.ts');
// turn on headless mode when running with HEADLESS=true environment variable
// HEADLESS=true npx codecept run
setHeadlessWhen(process.env.HEADLESS);
exports.config = {
tests: './tests/**_test.ts',
output: './output',
helpers: {
Playwright: {
url: 'https://github.com',
show: false,
windowSize: '1200x900',
browser: 'chromium'
},
CustomHelper: {
require: './CustomHelper.ts'
}
},
bootstrap,
include: {
loginPage: './loginPage.ts',
homePage: './homePage.ts'
},
name: 'typescript-boilerplate',
plugins: {
retryFailedStep: {
enabled: true
},
screenshotOnFail: {
enabled: true
}
}
}