-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcodecept.conf.ts
More file actions
65 lines (63 loc) · 1.64 KB
/
codecept.conf.ts
File metadata and controls
65 lines (63 loc) · 1.64 KB
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
61
62
63
64
65
import 'dotenv/config'
import { setHeadlessWhen, setWindowSize } from '@codeceptjs/configure'
setHeadlessWhen(process.env.HEADLESS === 'true')
setWindowSize(1600, 1200)
export const config: CodeceptJS.MainConfig = {
name: 'codeceptjs-playwright-typescript-boilerplate',
tests: './tests/**/**.spec.ts',
output: process.env.OUTPUT_PATH,
helpers: {
Playwright: {
url: process.env.BASE_URL,
show: process.env.HEADLESS === 'false',
video: true,
trace: true,
browser: 'chromium',
ignoreHTTPSErrors: true,
emulate: {
deviceScaleFactor: process.env.DEVICE_SCALE_FACTOR ? parseInt(process.env.DEVICE_SCALE_FACTOR) : 1,
recordHar: process.env.RECORD_HAR === 'true' ? {
path: `${process.env.OUTPUT_PATH}/har/requests.har`,
mode: 'full',
} : undefined,
},
waitForTimeout: 45_000,
waitForNavigation: 'load',
keepVideoForPassedTests: false,
keepTraceForPassedTests: true,
},
A11yHelper: {
require: 'codeceptjs-a11y-helper',
outputDir: `${process.env.OUTPUT_PATH}/accessibility-audit`,
},
},
include: {
I: './CustomSteps',
HomePage: './pages/HomePage',
},
multiple: {
desktop: {
browsers: [
{ browser: 'chromium' },
{ browser: 'firefox' },
{ browser: 'webkit' }
]
},
},
plugins: {
retryFailedStep: {
enabled: true
},
screenshotOnFail: {
enabled: true
},
stepByStepReport: {
enabled: true
},
allure: {
enabled: true,
require: 'allure-codeceptjs',
outputDir: `${process.env.OUTPUT_PATH}/allure-raw`,
},
}
}