Skip to content

Instantly share code, notes, and snippets.

@asciidisco
Created August 5, 2013 17:11
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 asciidisco/6157619 to your computer and use it in GitHub Desktop.
Save asciidisco/6157619 to your computer and use it in GitHub Desktop.
Facebook log in with DalekJS
module.exports = {
'Facebook log in': function (test) {
test.open('https://facebook.com')
.assert.exists('input[name="email"]')
.assert.exists('input[name="pass"]')
.type('input[name="email"]', 'me@notyou.com')
.type('input[name="pass"]', 'mySecret')
.submit('#login_form')
.screenshot('facebook.png')
.done();
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment