Commit c4fe4f050c45a3b2bc345fc8cca06dc7b5fa5454
Committed by
Daniela Feitosa
1 parent
10207b39
Exists in
master
and in
28 other branches
removing custom_webrat_steps.rb
Showing
1 changed file
with
0 additions
and
48 deletions
Show diff stats
features/step_definitions/custom_webrat_steps.rb
@@ -1,48 +0,0 @@ | @@ -1,48 +0,0 @@ | ||
1 | -When /^I should see "([^\"]+)" link$/ do |text| | ||
2 | - if response.class.to_s == 'Webrat::SeleniumResponse' | ||
3 | - response.selenium.is_element_present("css=a:contains('#{text}')") | ||
4 | - else | ||
5 | - response.should have_selector("a:contains('#{text}')") | ||
6 | - end | ||
7 | -end | ||
8 | - | ||
9 | -When /^I should not see "([^\"]+)" link$/ do |text| | ||
10 | - response.should_not have_selector("a:contains('#{text}')") | ||
11 | -end | ||
12 | - | ||
13 | -When /^I should see "([^\"]+)" linking to "([^\"]+)"$/ do |text, href| | ||
14 | - response.should have_selector("a:contains('#{text}')") | ||
15 | - response.should have_selector("a[href='#{href}']") | ||
16 | -end | ||
17 | - | ||
18 | -Then /^I should be exactly on (.+)$/ do |page_name| | ||
19 | - URI.parse(current_url).request_uri.should == path_to(page_name) | ||
20 | -end | ||
21 | - | ||
22 | -Then /^I should be moved to anchor "([^\"]+)"$/ do |anchor| | ||
23 | - URI.parse(current_url).fragment.should == anchor | ||
24 | -end | ||
25 | - | ||
26 | -When /^I select "([^\"]*)"$/ do |value| | ||
27 | - select(value) | ||
28 | -end | ||
29 | - | ||
30 | -When /^I fill in the following within "([^\"]*)":$/ do |parent, fields| | ||
31 | - fields.rows_hash.each do |name, value| | ||
32 | - When %{I fill in "#{name}" with "#{value}" within "#{parent}"} | ||
33 | - end | ||
34 | -end | ||
35 | - | ||
36 | -When /^I fill in "([^\"]*)" with "([^\"]*)" within "([^\"]*)"$/ do |field, value, parent| | ||
37 | - within(parent) do |content| | ||
38 | - content.fill_in(field, :with => value) | ||
39 | - end | ||
40 | -end | ||
41 | - | ||
42 | -When /^I should see content inside "([^\"]+)"$/ do |selector| | ||
43 | - response.should have_selector(selector) | ||
44 | -end | ||
45 | - | ||
46 | -When /^I should not see content inside "([^\"]+)"$/ do |selector| | ||
47 | - response.should_not have_selector(selector) | ||
48 | -end |