Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@joshk
Created November 3, 2009 19:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshk/225364 to your computer and use it in GitHub Desktop.
Save joshk/225364 to your computer and use it in GitHub Desktop.
Then /^I should see "([^\"]*)" in "([^\"]*)"$/ do |text, selector|
response_body.should have_tag(selector, /#{Regexp.escape(text)}/)
end
@selenium
Scenario: Location search populates location fields
Given I am on the new user group page
When I fill in "Location search" with "Amsterdam"
Then I should see "Amsterdam" in "#user_group_region"
And I should see "52.4025" in "#user_group_latitude"
And I should see "4.9162"
And I should see "NL"
And I should see "Amsterdam"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment