Skip to content

Instantly share code, notes, and snippets.

@bshepherdson
Created July 11, 2013 16:34
Show Gist options
  • Select an option

  • Save bshepherdson/5977020 to your computer and use it in GitHub Desktop.

Select an option

Save bshepherdson/5977020 to your computer and use it in GitHub Desktop.
Failing ngScenario test
describe 'invites', ->
it 'should allow sending an invite', ->
browser().navigateTo('/app/index-e2e.html#/profile')
input('send.invite_email', 'invite box').enter('invited@email.com')
element('#invitebutton', 'send invite button').click()
expect(binding('message')).toEqual('Invite sent to invited@email.com')
expect(element('#message', 'success message window').text()).toEqual('Invite sent to invited@email.com')
expect(element('#invitebox', 'invite box').val()).toEqual('')
# Fails sometimes with:
# expect select binding 'message' toEqual "Invite sent to invited@email.com"
# http://localhost:8080/base/test/e2e/invites.coffee-compiled.js:35:5
# expected "Invite sent to invited@email.com" but was ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment