Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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