Created
June 17, 2020 06:50
-
-
Save velotiotech/aff22e696207e3cc5b1a6a13c6cb0992 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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