Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created June 17, 2020 06:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save velotiotech/aff22e696207e3cc5b1a6a13c6cb0992 to your computer and use it in GitHub Desktop.
Save velotiotech/aff22e696207e3cc5b1a6a13c6cb0992 to your computer and use it in GitHub Desktop.
const { setDefaultTimeout, AfterAll, BeforeAll } = require('cucumber');
const { createSession, closeSession, startWebDriver, stopWebDriver } = require('nightwatch-api');
setDefaultTimeout(60000);
BeforeAll(async () => {
await startWebDriver();
await createSession();
});
AfterAll(async () => {
await closeSession();
await stopWebDriver();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment