123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153 |
- //
- // Refer to the online docs for more details:
- // https://nightwatchjs.org/guide/configuration/nightwatch-configuration-file.html
- //
- // _ _ _ _ _ _ _
- // | \ | |(_) | | | | | | | |
- // | \| | _ __ _ | |__ | |_ __ __ __ _ | |_ ___ | |__
- // | . ` || | / _` || '_ \ | __|\ \ /\ / / / _` || __| / __|| '_ \
- // | |\ || || (_| || | | || |_ \ V V / | (_| || |_ | (__ | | | |
- // \_| \_/|_| \__, ||_| |_| \__| \_/\_/ \__,_| \__| \___||_| |_|
- // __/ |
- // |___/
- //
- 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: [],
- // See https://nightwatchjs.org/guide/concepts/page-object-model.html
- page_objects_path: [],
- // See https://nightwatchjs.org/guide/extending-nightwatch/adding-custom-commands.html
- custom_commands_path: ['nightwatch/custom-commands'],
- // See https://nightwatchjs.org/guide/extending-nightwatch/adding-custom-assertions.html
- custom_assertions_path: ['nightwatch/custom-assertions'],
- // See https://nightwatchjs.org/guide/extending-nightwatch/adding-plugins.html
- plugins: ['@nightwatch/vue'],
- // See https://nightwatchjs.org/guide/concepts/test-globals.html#external-test-globals
- globals_path: '',
- vite_dev_server: {
- start_vite: true,
- port: process.env.CI ? 4173 : 5173
- },
- webdriver: {},
- test_workers: {
- enabled: true,
- workers: 'auto'
- },
- test_settings: {
- default: {
- disable_error_log: false,
- launch_url: `http://localhost:${process.env.CI ? '4173' : '5173'}`,
- screenshots: {
- enabled: false,
- path: 'screens',
- on_failure: true
- },
- desiredCapabilities: {
- browserName: 'firefox'
- },
- webdriver: {
- start_process: true,
- server_path: ''
- }
- },
- safari: {
- desiredCapabilities: {
- browserName: 'safari',
- alwaysMatch: {
- acceptInsecureCerts: false
- }
- },
- webdriver: {
- start_process: true,
- server_path: ''
- }
- },
- firefox: {
- desiredCapabilities: {
- browserName: 'firefox',
- alwaysMatch: {
- acceptInsecureCerts: true,
- 'moz:firefoxOptions': {
- args: [
- // '-headless',
- // '-verbose'
- ]
- }
- }
- },
- webdriver: {
- start_process: true,
- server_path: '',
- cli_args: [
- // very verbose geckodriver logs
- // '-vv'
- ]
- }
- },
- chrome: {
- desiredCapabilities: {
- browserName: 'chrome',
- 'goog:chromeOptions': {
- // More info on Chromedriver: https://sites.google.com/a/chromium.org/chromedriver/
- //
- // w3c:false tells Chromedriver to run using the legacy JSONWire protocol (not required in Chrome 78)
- w3c: true,
- args: [
- //'--no-sandbox',
- //'--ignore-certificate-errors',
- //'--allow-insecure-localhost',
- //'--headless'
- ]
- }
- },
- webdriver: {
- start_process: true,
- server_path: '',
- cli_args: [
- // --verbose
- ]
- }
- },
- edge: {
- desiredCapabilities: {
- browserName: 'MicrosoftEdge',
- 'ms:edgeOptions': {
- w3c: true,
- // More info on EdgeDriver: https://docs.microsoft.com/en-us/microsoft-edge/webdriver-chromium/capabilities-edge-options
- args: [
- //'--headless'
- ]
- }
- },
- webdriver: {
- start_process: true,
- // Download msedgedriver from https://docs.microsoft.com/en-us/microsoft-edge/webdriver-chromium/
- // and set the location below:
- server_path: '',
- cli_args: [
- // --verbose
- ]
- }
- }
- }
- }
|