whitebophir/nightwatch.conf.js
bhavik001 38e81921e2
Formatting and Add formatting to CI workflow (#292)
* Add prettier formatting feature and also add it as a job in CI.yml file

* Update CI.yml file

* Add format job to CI.yml file

* Fix formatting issues in CI workflow file
2023-11-25 01:37:05 +01:00

49 lines
1.1 KiB
JavaScript

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