You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
567 B
JavaScript
31 lines
567 B
JavaScript
const path = require('path');
|
|
const {
|
|
setDefaultTimeout,
|
|
After,
|
|
Before,
|
|
AfterAll,
|
|
BeforeAll,
|
|
} = require('@cucumber/cucumber');
|
|
const {
|
|
createSession,
|
|
closeSession,
|
|
startWebDriver,
|
|
} = require('nightwatch-api');
|
|
|
|
startWebDriver({ configFile: path.join(__dirname, 'nightwatch.conf.js') });
|
|
setDefaultTimeout(60000);
|
|
|
|
BeforeAll(async function () {});
|
|
|
|
// runs before each scenario
|
|
Before(async function () {
|
|
await createSession();
|
|
});
|
|
|
|
// runs after each scenario
|
|
After(async function () {
|
|
await closeSession();
|
|
});
|
|
|
|
AfterAll(async function () {});
|