Commit ca535c0a45a559e60cbd8c8fbe3194726670c1e9

Authored by Daniel Cunha
Committed by Daniela Feitosa
1 parent 6947b0ec

Adding admin_categories_steps and custom_web_steps

features/step_definitions/admin_categories_steps.rb 0 → 100644
... ... @@ -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 @@
  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
... ...