Skip to content

Instantly share code, notes, and snippets.

@fritz-gerneth
Created March 18, 2013 09:24
Show Gist options
  • Save fritz-gerneth/5185927 to your computer and use it in GitHub Desktop.
Save fritz-gerneth/5185927 to your computer and use it in GitHub Desktop.
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