Created
March 18, 2013 09:24
-
-
Save fritz-gerneth/5185927 to your computer and use it in GitHub Desktop.
This file contains 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
describe('Login', function () { | |
"use strict"; | |
var driver, | |
createDriver = require('../lib/client').driver; | |
beforeEach(function (done) { | |
driver = createDriver(); | |
driver.goToPage('login') | |
.then(function () {done(); }); | |
}); | |
describe('Requires valid credentials', function () { | |
it.skip('Accepts valid credentials', function (done) { | |
driver.findElement({id: 'login-sign-in-link'}) | |
.click(); | |
driver.findElement({id: 'login-email'}). | |
sendKeys('[email protected]'); | |
driver.findElement({id: 'login-password'}) | |
.sendKeys('test12'); | |
driver.findElement({id: 'login-buttons-password'}) | |
.click(); | |
}); | |
it.skip('Rejects invalid user', function (done) { | |
}); | |
}); | |
it.skip('Information to recover password', function (done) { | |
}); | |
it.skip('Information to register', function (done) { | |
}); | |
afterEach(function (done) { | |
driver.close(); | |
driver.quit().then(done); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment