const seleniumServer = require('selenium-server-standalone-jar');
const chromeDriver = require('chromedriver');
module.exports = {
src_folders: ['src/spec/e2e/tests'],
page_objects_path: [
'src/spec/e2e/pageObjects',
'src/spec/e2e/pageObjects/common',
'src/spec/e2e/pageObjects/checklists',
'src/spec/e2e/pageObjects/templates',
'src/spec/e2e/pageObjects/templates/checklistCreation',
'src/spec/e2e/pageObjects/templates/templateCreation',
'src/spec/e2e/pageObjects/templates/templateEdit',
'src/spec/e2e/pageObjects/issues',
'src/spec/e2e/pageObjects/issues/issuesCreation'
],
globals_path: 'src/spec/e2e/globals/globalsModule.js',
custom_commands_path: 'src/spec/e2e/customCommands',
selenium: {
start_process: true,
server_path: seleniumServer.path,
host: '127.0.0.1',
port: 4444,
cli_args: {
'webdriver.chrome.driver': chromeDriver.path
}
},
test_runner: {
type: 'mocha',
options: {
ui: 'bdd',
reporter: 'good-mocha-html-reporter',
timeout: 15000,
bail: false,
savePath: './', // the path to desired location
filename: 'report.html', // filename gets attached at the end of savePath
mode: 'Verbose'
}
},
test_settings: {
default: {
launch_url: 'APP URL',
silent: true,
desiredCapabilities: {
browserName: 'chrome',
javascriptEnabled: true,
acceptSslCerts: true,
chromeOptions: {
args: [
"--no-sandbox",
"start-fullscreen"
]
}
}
}
}
};
module.exports = {"src_folders": ["test/e2e"// Where you are storing your Nightwatch e2e tests],"custom_commands_path" : "","custom_assertions_path" : "","page_objects_path" : "pages","globals_path" : "globals.js","globals" : "","output_folder": "./reports", // reports (test outcome) output by nightwatch"selenium": { // downloaded by selenium-download module (see readme)"start_process": true, // tells nightwatch to start/stop the selenium process"server_path": "./lib/selenium-server-standalone-3.4.0.jar","host": "127.0.0.1","port": 4444, // standard selenium port"cli_args": { // chromedriver is downloaded by selenium-download (see readme)"webdriver.chrome.driver" : "./lib/chromedriver.exe","webdriver.gecko.driver" : "./lib/geckodriver.exe","webdriver.safari.driver" : "","webdriver.ie.driver" : "./lib/IEDriverServer.exe","webdriver.edge.driver" : "./lib/MicrosoftWebDriver.exe"}},