-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnightwatch.conf.js
77 lines (74 loc) · 1.86 KB
/
nightwatch.conf.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
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
module.exports = {
src_folders: ['tests'],
filter : "**/*.spec.js",
exclude : ["tests/client", "tests/nightwatch", "tests/test_output"],
custom_commands_path: ['tests/nightwatch/commands'],
custom_assertions_path: ['tests/nightwatch/assertions'],
plugins: [],
globals_path: 'tests/nightwatch/globals.js',
output_folder: 'tests/tests_output',
screenshots : {
enabled : true,
on_failure : true,
on_error : false,
path : "tests/screenshots"
},
webdriver: {},
test_workers: {
enabled: true
},
test_settings: {
default: {
globals: {
waitForConditionTimeout: 30000,
waitForConditionPollInterval: 500
},
persist_globals: true,
screenshots: {
enabled: "${SCREENSHOTS_ENABLED}",
on_failure: "${SCREENSHOTS_ENABLED}",
path: "screenshots"
},
selenium_port: "${WEBDRIVER_PORT}",
selenium_host: "${WEBDRIVER_HOST}",
desiredCapabilities: {
browserName: "chrome",
javascriptEnabled: true,
acceptSslCerts: true,
acceptInsecureCerts: true
}
},
"local:lab": {
globals: {
domainSuffix: "-lab.homecentr.one",
secretsFile: "secrets.lab.sops.yaml",
envFile: "lab.local.env",
isRemote: false
}
},
"remote:lab": {
globals: {
domainSuffix: "-lab.homecentr.one",
secretsFile: "secrets.lab.sops.yaml",
envFile: "remote.env",
isRemote: true
}
},
"local:prod": {
globals: {
domainSuffix: ".homecentr.one",
secretsFile: "secrets.prod.sops.yaml",
envFile: "prod.local.env",
isRemote: false
}
},
"remote:prod": {
globals: {
domainSuffix: ".homecentr.one",
secretsFile: "secrets.prod.sops.yaml",
envFile: "remote.env",
isRemote: true
}
}
}
};