Skip to content

Instantly share code, notes, and snippets.

@kenyonj
Created June 25, 2014 02:54
Show Gist options
  • Save kenyonj/705f4fa67ba53486d14e to your computer and use it in GitHub Desktop.
Save kenyonj/705f4fa67ba53486d14e to your computer and use it in GitHub Desktop.
describe "User views settings for a form", ->
it "they export the form to JSON", ->
create('form').then (form) ->
visit("/f/#{form.get("id")}/edit").then ->
click(".ember-view a:contains('Export')").then ->
click(".button.export-to-json").then ->
expectedURL = "/f/#{form.get("id")}.json"
expect(currentURL()).to.equal(expectedURL, "expected #{currentURL()} to equal #{expectedURL}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment