Created
July 27, 2010 20:16
-
-
Save mikeymckay/492792 to your computer and use it in GitHub Desktop.
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
When /^(?:|I )go to (.+)$/ do |page_name| | |
When /^(?:|I )press "([^\"]*)"(?: within "([^\"]*)")?$/ do |button, selector| | |
When /^(?:|I )follow "([^\"]*)"(?: within "([^\"]*)")?$/ do |link, selector| | |
When /^(?:|I )fill in "([^\"]*)" with "([^\"]*)"(?: within "([^\"]*)")?$/ do |field, value, selector| | |
When /^(?:|I )fill in "([^\"]*)" for "([^\"]*)"(?: within "([^\"]*)")?$/ do |value, field, selector| | |
# When I fill in the following: | |
When /^(?:|I )fill in the following(?: within "([^\"]*)")?:$/ do |selector, fields| | |
When %{I fill in "#{name}" with "#{value}"} | |
When /^(?:|I )select "([^\"]*)" from "([^\"]*)"(?: within "([^\"]*)")?$/ do |value, field, selector| | |
When /^(?:|I )check "([^\"]*)"(?: within "([^\"]*)")?$/ do |field, selector| | |
When /^(?:|I )uncheck "([^\"]*)"(?: within "([^\"]*)")?$/ do |field, selector| | |
When /^(?:|I )choose "([^\"]*)"(?: within "([^\"]*)")?$/ do |field, selector| | |
When /^(?:|I )attach the file "([^\"]*)" to "([^\"]*)"(?: within "([^\"]*)")?$/ do |path, field, selector| | |
Then /^(?:|I )should see JSON:$/ do |expected_json| | |
Then /^(?:|I )should see "([^\"]*)"(?: within "([^\"]*)")?$/ do |text, selector| | |
Then /^(?:|I )should see \/([^\/]*)\/(?: within "([^\"]*)")?$/ do |regexp, selector| | |
Then /^(?:|I )should not see "([^\"]*)"(?: within "([^\"]*)")?$/ do |text, selector| | |
Then /^(?:|I )should not see \/([^\/]*)\/(?: within "([^\"]*)")?$/ do |regexp, selector| | |
Then /^the "([^\"]*)" field(?: within "([^\"]*)")? should contain "([^\"]*)"$/ do |field, selector, value| | |
Then /^the "([^\"]*)" field(?: within "([^\"]*)")? should not contain "([^\"]*)"$/ do |field, selector, value| | |
Then /^the "([^\"]*)" checkbox(?: within "([^\"]*)")? should be checked$/ do |label, selector| | |
Then /^the "([^\"]*)" checkbox(?: within "([^\"]*)")? should not be checked$/ do |label, selector| | |
Then /^(?:|I )should be on (.+)$/ do |page_name| | |
Then /^(?:|I )should have the following query string:$/ do |expected_pairs| | |
Then /^show me the page$/ do |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment