-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
3,837 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
const setup = require('./src/setup'); | ||
const teardown = require('./src/teardown'); | ||
|
||
// | ||
// 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: ['test/e2e'], | ||
|
||
// 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/commands'], | ||
|
||
// See https://nightwatchjs.org/guide/extending-nightwatch/adding-custom-assertions.html | ||
custom_assertions_path: '', | ||
|
||
// See https://nightwatchjs.org/guide/extending-nightwatch/adding-plugins.html | ||
plugins: [], | ||
|
||
// See https://nightwatchjs.org/guide/concepts/test-globals.html#external-test-globals | ||
globals_path: '', | ||
|
||
globals: { | ||
async before() { | ||
await setup(this.settings); | ||
}, | ||
|
||
async after() { | ||
await teardown(); | ||
} | ||
}, | ||
|
||
'@nightwatch/angular': { | ||
projectRoot: '/Users/binayakghosh/projects/nightwatch-plugin-angular/sandbox-v15' | ||
}, | ||
|
||
webdriver: {}, | ||
|
||
test_workers: { | ||
enabled: true, | ||
workers: 'auto' | ||
}, | ||
|
||
test_settings: { | ||
default: { | ||
disable_error_log: false, | ||
launch_url: 'https://nightwatchjs.org', | ||
|
||
screenshots: { | ||
enabled: false, | ||
path: 'screens', | ||
on_failure: true | ||
}, | ||
|
||
desiredCapabilities: { | ||
browserName: 'firefox' | ||
}, | ||
|
||
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 | ||
] | ||
} | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.