Commit 8f16e5b6d1d954677ee85878107b4d0e3546b9af

Authored by Daniel Cunha
1 parent c72fb8ba

Adding admin_categories_steps and custom_web_steps

features/step_definitions/admin_categories_steps.rb 0 → 100644
@@ -0,0 +1,4 @@ @@ -0,0 +1,4 @@
  1 +When /^I follow "([^"]*)" and wait while it hides$/ do |link|
  2 + click_link link
  3 + wait_until{ page.should have_no_css('a', :text => link, :visible => true) }
  4 +end
features/step_definitions/custom_web_steps.rb 0 → 100644
@@ -0,0 +1,5 @@ @@ -0,0 +1,5 @@
  1 +Then /^"([^"]*)" should not be visible within "([^"]*)"$/ do |text, selector|
  2 + if page.has_content?(text)
  3 + page.should have_no_css(selector, :text => text, :visible => false)
  4 + end
  5 +end