Last active
September 11, 2017 06:55
-
-
Save giltayar/7026ac3c1251450d9480ee1eed425d3e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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