Created
June 25, 2014 02:54
-
-
Save kenyonj/705f4fa67ba53486d14e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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