Skip to content

Instantly share code, notes, and snippets.

@shamoons
Created May 27, 2014 15:03
Show Gist options
  • 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