diff --git a/features/step_definitions/admin_categories_steps.rb b/features/step_definitions/admin_categories_steps.rb new file mode 100644 index 0000000..99b6f8d --- /dev/null +++ b/features/step_definitions/admin_categories_steps.rb @@ -0,0 +1,4 @@ +When /^I follow "([^"]*)" and wait while it hides$/ do |link| + click_link link + wait_until{ page.should have_no_css('a', :text => link, :visible => true) } +end diff --git a/features/step_definitions/custom_web_steps.rb b/features/step_definitions/custom_web_steps.rb new file mode 100644 index 0000000..4992eab --- /dev/null +++ b/features/step_definitions/custom_web_steps.rb @@ -0,0 +1,5 @@ +Then /^"([^"]*)" should not be visible within "([^"]*)"$/ do |text, selector| + if page.has_content?(text) + page.should have_no_css(selector, :text => text, :visible => false) + end +end -- libgit2 0.21.2