Skip to content

Instantly share code, notes, and snippets.

@giltayar
Last active September 11, 2017 06:55
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 giltayar/7026ac3c1251450d9480ee1eed425d3e to your computer and use it in GitHub Desktop.
Save giltayar/7026ac3c1251450d9480ee1eed425d3e to your computer and use it in GitHub Desktop.
it('should look good', async function () {
await driver.get('http://localhost:8080')
await eyes.checkWindow('Initial Page')
const digit4Element = await driver.findElement(By.css('.digit-4'))
const digit2Element = await driver.findElement(By.css('.digit-2'))
const operatorMultiply = await driver.findElement(By.css('.operator-multiply'))
const operatorEquals = await driver.findElement(By.css('.operator-equals'))
await digit4Element.click()
await digit2Element.click()
await operatorMultiply.click()
await digit2Element.click()
await operatorEquals.click()
await eyes.checkWindow('After calculating 42 * 2 =')
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment