Created
October 13, 2015 21:09
-
-
Save mrded/f3da092554b35b2faa06 to your computer and use it in GitHub Desktop.
cucumber definitions
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
Given /^I am viewing an existed "(?P<type>[^"]*)" node with the title "(?P<title>[^"]*)"$/ | |
Given /^an existed "(?P<type>[^"]*)" node with the title "(?P<title>[^"]*)"$/ | |
Then /^(?:|I )should be on "(?P<url>[^"]+)" address$/ | |
Given /^users with profile:$/ | |
When /^I am viewing profile for "(?P<user_name>[^"]*)" user$/ | |
Given /^a "(?P<type>[^"]*)" node with "(?P<title>[^"]*)" title belongs to "(?P<company_title>[^"]*)" company$/ | |
Given /^I am logged in as an employer of the "([^"]*)" company$/ | |
Given /^(?:that I|I) am at "(?P[^"]*)"$/ | |
When /^I visit "(?P[^"]*)"$/ | |
When /^I click "(?P<link>[^"]*)"$/ | |
Given /^for "(?P<field>[^"]*)" I enter "(?P<value>[^"]*)"$/ | |
Given /^I enter "(?P<value>[^"]*)" for "(?P<field>[^"]*)"$/ | |
Given /^I wait for AJAX to finish$/ | |
When /^(?:|I )press "(?P<button>(?:[^"]|\\")*)"$/ | |
When /^(?:|I )press the "(?P<button>[^"]*)" button$/ | |
Given /^(?:|I )press the "([^"]*)" key in the "([^"]*)" field$/ | |
Then /^I should see the link "(?P<link>[^"]*)"$/ | |
Then /^I should not see the link "(?P<link>[^"]*)"$/ | |
Then /^I (?:|should )see the heading "(?P<heading>[^"]*)"$/ | |
Then /^I (?:|should )not see the heading "(?P<heading>[^"]*)"$/ | |
Then /^I should see the heading "(?P<heading>[^"]*)" in the "(?P<region>[^"]*)"(?:| region)$/ | |
Then /^I should see the "(?P<heading>[^"]*)" heading in the "(?P<region>[^"]*)"(?:| region)$/ | |
When /^I (?:follow|click) "(?P<link>[^"]*)" in the "(?P<region>[^"]*)"(?:| region)$/ | |
Then /^I should see the link "(?P<link>[^"]*)" in the "(?P<region>[^"]*)"(?:| region)$/ | |
Then /^I should not see the link "(?P<link>[^"]*)" in the "(?P<region>[^"]*)"(?:| region)$/ | |
Then /^I should see (?:the text |)"(?P<text>[^"]*)" in the "(?P<region>[^"]*)"(?:| region)$/ | |
Then /^I should not see (?:the text |)"(?P<text>[^"]*)" in the "(?P<region>[^"]*)"(?:| region)$/ | |
Given /^I press "(?P<button>[^"]*)" in the "(?P<region>[^"]*)"(?:| region)$/ | |
Given /^(?:|I )fill in "(?P<value>(?:[^"]|\\")*)" for "(?P<field>(?:[^"]|\\")*)" in the "(?P<region>[^"]*)"(?:| region)$/ | |
Given /^(?:|I )fill in "(?P<field>(?:[^"]|\\")*)" with "(?P<value>(?:[^"]|\\")*)" in the "(?P<region>[^"]*)"(?:| region)$/ | |
Then /^(?:I|I should) see the text "(?P<text>[^"]*)"$/ | |
Then /^I should not see the text "(?P<text>[^"]*)"$/ | |
Then /^I should get a "(?P<code>[^"]*)" HTTP response$/ | |
Then /^I should not get a "(?P<code>[^"]*)" HTTP response$/ | |
Given /^I check the box "(?P<checkbox>[^"]*)"$/ | |
Given /^I uncheck the box "(?P<checkbox>[^"]*)"$/ | |
When /^I select the radio button "(?P<label>[^"]*)" with the id "(?P<id>[^"]*)"$/ | |
When /^I select the radio button "(?P<label>[^"]*)"$/ | |
Given /^I am an anonymous user$/ | |
Given /^I am not logged in$/ | |
Given /^I am logged in as a user with the "(?P<role>[^"]*)" role$/ | |
Given /^I am logged in as "(?P<name>[^"]*)"$/ | |
Given /^I am logged in as a user with the "(?P<permission>[^"]*)" permission(?:|s)$/ | |
Then /^I should see the text "(?P<text>[^"]*)" in the "(?P<row_text>[^"]*)" row$/ | |
Given /^I click "(?P<link>[^"]*)" in the "(?P<row_text>[^"]*)" row$/ | |
Given /^the cache has been cleared$/ | |
Given /^I run cron$/ | |
Given /^I am viewing (?:a|an) "(?P<type>[^"]*)" node with the title "(?P<title>[^"]*)"$/ | |
Given /^(?:a|an) "(?P<type>[^"]*)" node with the title "(?P<title>[^"]*)"$/ | |
Given /^I am viewing my "(?P<type>[^"]*)" node with the title "(?P<title>[^"]*)"$/ | |
Given /^"(?P<type>[^"]*)" nodes:$/ | |
Given /^I am viewing (?:a|an) "(?P<type>[^"]*)" node:$/ | |
Then /^I should be able to edit (?:a|an) "([^"]*)" node$/ | |
Given /^I am viewing (?:a|an) "(?P<vocabulary>[^"]*)" term with the name "(?P<name>[^"]*)"$/ | |
Given /^(?:a|an) "(?P<vocabulary>[^"]*)" term with the name "(?P<name>[^"]*)"$/ | |
Given /^users:$/ | |
Given /^"(?P<vocabulary>[^"]*)" terms:$/ | |
Then /^I should see the error message(?:| containing) "([^"]*)"$/ | |
Then /^I should see the following <error messages>$/ | |
Given /^I should not see the error message(?:| containing) "([^"]*)"$/ | |
Then /^I should not see the following <error messages>$/ | |
Then /^I should see the success message(?:| containing) "([^"]*)"$/ | |
Then /^I should see the following <success messages>$/ | |
Given /^I should not see the success message(?:| containing) "([^"]*)"$/ | |
Then /^I should not see the following <success messages>$/ | |
Then /^I should see the warning message(?:| containing) "([^"]*)"$/ | |
Then /^I should see the following <warning messages>$/ | |
Given /^I should not see the warning message(?:| containing) "([^"]*)"$/ | |
Then /^I should not see the following <warning messages>$/ | |
Then /^I should see the message(?:| containing) "([^"]*)"$/ | |
Then /^I should not see the message(?:| containing) "([^"]*)"$/ | |
Given /^I run drush "(?P<command>[^"]*)"$/ | |
Given /^I run drush "(?P<command>[^"]*)" "(?P<arguments>(?:[^"]|\\")*)"$/ | |
Then /^drush output should contain "(?P<output>(?:[^"]|\\")*)"$/ | |
Then /^drush output should not contain "(?P<output>(?:[^"]|\\")*)"$/ | |
Then /^print last drush output$/ | |
Then /^(?:|I )break$/ | |
Given /^(?:|I )am on (?:|the )homepage$/ | |
When /^(?:|I )go to (?:|the )homepage$/ | |
Given /^(?:|I )am on "(?P<page>[^"]+)"$/ | |
When /^(?:|I )go to "(?P<page>[^"]+)"$/ | |
When /^(?:|I )reload the page$/ | |
When /^(?:|I )move backward one page$/ | |
When /^(?:|I )move forward one page$/ | |
When /^(?:|I )follow "(?P<link>(?:[^"]|\\")*)"$/ | |
When /^(?:|I )fill in "(?P<field>(?:[^"]|\\")*)" with "(?P<value>(?:[^"]|\\")*)"$/ | |
When /^(?:|I )fill in "(?P<field>(?:[^"]|\\")*)" with:$/ | |
When /^(?:|I )fill in "(?P<value>(?:[^"]|\\")*)" for "(?P<field>(?:[^"]|\\")*)"$/ | |
When /^(?:|I )fill in the following:$/ | |
When /^(?:|I )select "(?P<option>(?:[^"]|\\")*)" from "(?P<select>(?:[^"]|\\")*)"$/ | |
When /^(?:|I )additionally select "(?P<option>(?:[^"]|\\")*)" from "(?P<select>(?:[^"]|\\")*)"$/ | |
When /^(?:|I )check "(?P<option>(?:[^"]|\\")*)"$/ | |
When /^(?:|I )uncheck "(?P<option>(?:[^"]|\\")*)"$/ | |
When /^(?:|I )attach the file "(?P[^"]*)" to "(?P<field>(?:[^"]|\\")*)"$/ | |
Then /^(?:|I )should be on "(?P<page>[^"]+)"$/ | |
Then /^(?:|I )should be on (?:|the )homepage$/ | |
Then /^the (?i)url(?-i) should match (?P<pattern>"(?:[^"]|\\")*")$/ | |
Then /^the response status code should be (?P<code>\d+)$/ | |
Then /^the response status code should not be (?P<code>\d+)$/ | |
Then /^(?:|I )should see "(?P<text>(?:[^"]|\\")*)"$/ | |
Then /^(?:|I )should not see "(?P<text>(?:[^"]|\\")*)"$/ | |
Then /^(?:|I )should see text matching (?P<pattern>"(?:[^"]|\\")*")$/ | |
Then /^(?:|I )should not see text matching (?P<pattern>"(?:[^"]|\\")*")$/ | |
Then /^the response should contain "(?P<text>(?:[^"]|\\")*)"$/ | |
Then /^the response should not contain "(?P<text>(?:[^"]|\\")*)"$/ | |
Then /^(?:|I )should see "(?P<text>(?:[^"]|\\")*)" in the "(?P<element>[^"]*)" element$/ | |
Then /^(?:|I )should not see "(?P<text>(?:[^"]|\\")*)" in the "(?P<element>[^"]*)" element$/ | |
Then /^the "(?P<element>[^"]*)" element should contain "(?P<value>(?:[^"]|\\")*)"$/ | |
Then /^the "(?P<element>[^"]*)" element should not contain "(?P<value>(?:[^"]|\\")*)"$/ | |
Then /^(?:|I )should see an? "(?P<element>[^"]*)" element$/ | |
Then /^(?:|I )should not see an? "(?P<element>[^"]*)" element$/ | |
Then /^the "(?P<field>(?:[^"]|\\")*)" field should contain "(?P<value>(?:[^"]|\\")*)"$/ | |
Then /^the "(?P<field>(?:[^"]|\\")*)" field should not contain "(?P<value>(?:[^"]|\\")*)"$/ | |
Then /^the "(?P<checkbox>(?:[^"]|\\")*)" checkbox should be checked$/ | |
Then /^the checkbox "(?P<checkbox>(?:[^"]|\\")*)" (?:is|should be) checked$/ | |
Then /^the "(?P<checkbox>(?:[^"]|\\")*)" checkbox should not be checked$/ | |
Then /^the checkbox "(?P<checkbox>(?:[^"]|\\")*)" should (?:be unchecked|not be checked)$/ | |
Then /^the checkbox "(?P<checkbox>(?:[^"]|\\")*)" is (?:unchecked|not checked)$/ | |
Then /^(?:|I )should see (?P<num>\d+) "(?P<element>[^"]*)" elements?$/ | |
Then /^print current URL$/ | |
Then /^print last response$/ | |
Then /^show last response$/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment