Skip to content

Instantly share code, notes, and snippets.

@shamoons
Created May 27, 2014 15:03
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 shamoons/2970175f3c815ff7f9ca to your computer and use it in GitHub Desktop.
Save shamoons/2970175f3c815ff7f9ca to your computer and use it in GitHub Desktop.
describe 'Happy Path', ->
it 'should show the login page', ->
browser.driver.get 'http://localhost:9000/login'
browser.driver.wait ->
browser.driver.isElementPresent(By.id("username"))
, 1200
expect(browser.driver.getCurrentUrl()).toMatch '/login'
it 'should fail to login', ->
setTimeout ->
console.log "FAIL!"
, 1200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment