2020-04-27 22:42:49 +00:00
|
|
|
// Autogenerated by Nightwatch
|
|
|
|
// Refer to the online docs for more details: https://nightwatchjs.org/gettingstarted/configuration/
|
2023-11-25 00:37:05 +00:00
|
|
|
const Services = {};
|
|
|
|
loadServices();
|
2020-04-27 22:42:49 +00:00
|
|
|
|
|
|
|
module.exports = {
|
2023-11-25 00:37:05 +00:00
|
|
|
src_folders: ["tests"],
|
2020-04-27 22:42:49 +00:00
|
|
|
|
2023-11-25 00:37:05 +00:00
|
|
|
webdriver: {
|
|
|
|
start_process: true,
|
|
|
|
server_path: "./node_modules/.bin/geckodriver",
|
|
|
|
cli_args: ["--log", "debug"],
|
|
|
|
port: 4444,
|
2020-04-27 22:42:49 +00:00
|
|
|
},
|
|
|
|
|
2023-11-25 00:37:05 +00:00
|
|
|
test_settings: {
|
|
|
|
default: {
|
|
|
|
desiredCapabilities: {
|
|
|
|
browserName: "firefox",
|
|
|
|
acceptInsecureCerts: true,
|
|
|
|
alwaysMatch: {
|
2020-04-27 22:42:49 +00:00
|
|
|
"moz:firefoxOptions": {
|
2023-11-25 00:37:05 +00:00
|
|
|
args: ["-headless"],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2022-01-10 11:47:50 +00:00
|
|
|
},
|
2023-11-25 00:37:05 +00:00
|
|
|
jwt: {
|
|
|
|
globals: {
|
|
|
|
token:
|
|
|
|
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.5mhBHqs5_DTLdINd9p5m7ZJ6XD0Xc55kIaCRY5r6HRA",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2020-04-27 22:42:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
function loadServices() {
|
|
|
|
try {
|
2023-11-25 00:37:05 +00:00
|
|
|
Services.seleniumServer = require("selenium-server");
|
|
|
|
} catch (err) {}
|
2020-04-27 22:42:49 +00:00
|
|
|
|
|
|
|
try {
|
2023-11-25 00:37:05 +00:00
|
|
|
Services.chromedriver = require("chromedriver");
|
|
|
|
} catch (err) {}
|
2020-04-27 22:42:49 +00:00
|
|
|
|
|
|
|
try {
|
2023-11-25 00:37:05 +00:00
|
|
|
Services.geckodriver = require("geckodriver");
|
|
|
|
} catch (err) {}
|
2020-04-27 22:42:49 +00:00
|
|
|
}
|