-
Notifications
You must be signed in to change notification settings - Fork 260
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #367 from RefugeRestrooms/develop
Deploy to master
- Loading branch information
Showing
6 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@javascript | ||
Feature: Preview a restroom's location | ||
|
||
Scenario: Preview a restroom before submitting | ||
Given I have filled out the address information | ||
When I click the preview button | ||
Then I should see the map preview |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Given(/^I have filled out the address information$/) do | ||
visit "/" | ||
click_link "Submit a New Restroom" | ||
fill_in "restroom[name]", with: "Vancouver restroom" | ||
fill_in "restroom[street]", with: "684 East Hastings" | ||
fill_in "restroom[city]", with: "Vancouver" | ||
fill_in "restroom[state]", with: "British Columbia" | ||
find(:select, "Country").first(:option, "Canada").select_option | ||
end | ||
|
||
When(/^I click the preview button$/) do | ||
click_button "Preview" | ||
end | ||
|
||
Then(/^I should see the map preview$/) do | ||
expect(page).to have_css("div#mapArea", :visible => true) | ||
end |