Skip to content

Instantly share code, notes, and snippets.

@giltayar
Created March 2, 2017 06:13
Show Gist options
  • Save giltayar/804fa433fd5e405e569b0cc06edb6420 to your computer and use it in GitHub Desktop.
Save giltayar/804fa433fd5e405e569b0cc06edb6420 to your computer and use it in GitHub Desktop.
const {prepareDriver, cleanupDriver} = require('../utils/browser-automation')
//...
describe('calculator app', function () {
let driver
...
before(async () => {
driver = await prepareDriver()
})
after(() => cleanupDriver(driver))
it('should work', async function () {
await driver.get('http://localhost:8080')
//...
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment