Skip to content

Instantly share code, notes, and snippets.

@efleming969
Created July 30, 2021 20:38
Show Gist options
  • Save efleming969/7ecc026993e89e71d90ec55941bfa19e to your computer and use it in GitHub Desktop.
Save efleming969/7ecc026993e89e71d90ec55941bfa19e to your computer and use it in GitHub Desktop.
import browserUtils from "./support/browserUtils"
describe( "add game via ubs", function () {
before( async () => {
await browserUtils.start()
} )
after( async () => {
await browserUtils.stop()
} )
it.only( "successfully add game with valid code", async () => {
const page = await browserUtils.newPageAt( "/" )
await page.waitForSelector( `//h2[text() = 'Home']` )
await page.click( `//a[text() = 'Add new game']` )
await page.waitForSelector( `//h2[text() = 'Add Game']` )
} )
} )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment