-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcodecept.conf.ts
81 lines (79 loc) · 2.21 KB
/
codecept.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
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import { setHeadlessWhen, setCommonPlugins } from '@codeceptjs/configure';
// turn on headless mode when running with HEADLESS=true environment variable
// export HEADLESS=true && npx codeceptjs run
setHeadlessWhen(process.env.HEADLESS);
// enable all common plugins https://github.com/codeceptjs/configure#setcommonplugins
setCommonPlugins();
export const config: CodeceptJS.MainConfig = {
tests: './tests/#_test.ts',
output: './output',
emptyOutputFolder: true,
helpers: {
Playwright: {
url: 'https://github.com',
show: false,
browser: 'chromium',
waitForNavigation: 'load',
waitForTimeout: 30_000
},
CDPHelper: {
require: './helpers/CDPHelper.ts'
},
OpenAI: {
chunkSize: 8000
},
Expect: {},
REST: {
endpoint: 'https://reqres.in',
timeout: 20_000
},
},
include: {
I: './steps_file.ts',
loginPage: './pages/#.ts',
},
name: 'codeceptjs-playwright-fun',
plugins: {
reportportal: {
enabled: false,
require: '@reportportal/agent-js-codecept',
token: process.env.RP_TOKEN,
endpoint: 'https://demo.reportportal.io/api/v1',
launchName: 'peterngtr_TEST_EXAMPLE',
projectName: 'peterngtr_personal'
},
heal: {
enabled: false,
},
ai: {
model: 'gpt-3.5-turbo-16k',
temperature: 0.1,
html: {
maxLength: 50000,
simplify: true,
minify: true,
interactiveElements: [
'a', 'input', 'button', 'select', 'textarea', 'option',
'm-button', 'm-text-input', 'm-number-input', 'm-text-area',
'm-form-multiselect', 'm-options-container', 'm-form-checkbox',
'm-form-date-picker',
'm-v2-form-field', 'm-v2-radio-button', 'm-v2-checkbox'
],
textElements: ['label', 'h1', 'h2', 'm-v2-form-label'],
allowedAttrs: [
'id', 'for', 'class', 'name', 'type', 'value', 'tabindex', 'label', 'role',
'data-test',
],
allowedRoles: ['button', 'checkbox', 'search', 'textbox', 'tab'],
},
},
allure: {
enabled: true,
require: "allure-codeceptjs",
},
retryFailedStep: {
enabled: false,
retries: 3
}
}
}