-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnightwatch.conf.cjs
More file actions
38 lines (34 loc) · 1.02 KB
/
nightwatch.conf.cjs
File metadata and controls
38 lines (34 loc) · 1.02 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
// Simple import - just require the package
const nightwatchDevtools = require('@wdio/nightwatch-devtools').default
module.exports = {
src_folders: ['example/tests'],
output_folder: false, // Skip generating nightwatch reports for this example
// Add custom reporter to capture commands
custom_commands_path: [],
custom_assertions_path: [],
webdriver: {
start_process: true,
server_path: '/opt/homebrew/bin/chromedriver',
port: 9515
},
test_settings: {
default: {
// Ensure all tests run even if one fails
skip_testcases_on_fail: false,
desiredCapabilities: {
browserName: 'chrome',
'goog:chromeOptions': {
args: [
'--headless',
'--no-sandbox',
'--disable-dev-shm-usage',
'--window-size=1600,1200'
]
},
'goog:loggingPrefs': { performance: 'ALL' }
},
// Simple configuration - just call the function to get globals
globals: nightwatchDevtools({ port: 3000 })
}
}
}