Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Add Comment
Please, Sign In to add comment