Created
December 13, 2016 20:33
-
-
Save marlun/8460a9b32da46b0f1fc83f32f29f816b to your computer and use it in GitHub Desktop.
Working example of selenium-webdriver and tape (I think)
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
test.only('Show error on missing credentials', function (t) { | |
t.plan(1); | |
browser.get('http://localhost:3000/'); | |
browser.findElement({ className: 'login__submit' }) | |
.click(); | |
var error = browser.wait(Until.elementLocated({ className: 'login__error' })); | |
browser.wait(Until.elementIsVisible(error)) | |
.then(function () { | |
t.ok(true); | |
}); | |
browser.quit(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment