55 lines
1.5 KiB
JavaScript
55 lines
1.5 KiB
JavaScript
module.exports = {
|
|
// An array of folders (excluding subfolders) where your tests are located;
|
|
// if this is not specified, the test source must be passed as the second argument to the test runner.
|
|
src_folders: ['../out-tsc/e2e/src'],
|
|
output_folder: './e2e-test-results',
|
|
custom_commands_path: 'out-tsc/e2e/commands',
|
|
test_workers: {
|
|
enabled: false,
|
|
workers: 5,
|
|
},
|
|
webdriver: {
|
|
start_process: true,
|
|
port: 9515,
|
|
server_path: require('chromedriver').path,
|
|
cli_args: [],
|
|
},
|
|
|
|
test_settings: {
|
|
default: {
|
|
launch_url: 'https://localhost:4200',
|
|
desiredCapabilities: {
|
|
browserName: 'chrome',
|
|
chromeOptions: {
|
|
args: [
|
|
'--headless',
|
|
'--disable-gpu',
|
|
'--window-size=1280,800',
|
|
'--no-sandbox',
|
|
'--disable-dev-shm-usage',
|
|
'--disable-browser-side-navigation',
|
|
'--user-agent=NIGHTWATCH',
|
|
// `--binary=${process.env.CHROME_BIN}`
|
|
],
|
|
w3c: false,
|
|
prefs: {
|
|
'profile.default_content_setting_values.geolocation': 1,
|
|
'profile.default_content_setting_values.notifications': 2,
|
|
},
|
|
},
|
|
},
|
|
screenshots: {
|
|
enabled: true, // if you want to keep screenshots
|
|
on_failure: true,
|
|
on_error: true,
|
|
path: './e2e/screenshots', // save screenshots here
|
|
},
|
|
globals: {
|
|
waitForConditionPollInterval: 500,
|
|
waitForConditionTimeout: 10000,
|
|
retryAssertionTimeout: 1000,
|
|
},
|
|
},
|
|
},
|
|
};
|