Skip to content

Instantly share code, notes, and snippets.

@paulmars
Created December 12, 2012 19:42
Show Gist options
  • Select an option

  • Save paulmars/4270905 to your computer and use it in GitHub Desktop.

Select an option

Save paulmars/4270905 to your computer and use it in GitHub Desktop.
ZombieJS test
login = (browser, email, password, calllback) ->
browser.visit path("/login"), ->
browser.should.be.success
browser.text("title").should.eql("JunoJs - Login")
browser.text("#error-message").should.eql("")
browser.
fill("Email", email).
fill("Password", password).
pressButton "Login", ->
calllback(browser) if calllback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment