summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/acceptance/features/step_definitions/create_new_steps.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/acceptance/features/step_definitions/create_new_steps.rb b/tests/acceptance/features/step_definitions/create_new_steps.rb
index 40540b4b8..7432724b8 100644
--- a/tests/acceptance/features/step_definitions/create_new_steps.rb
+++ b/tests/acceptance/features/step_definitions/create_new_steps.rb
@@ -14,5 +14,6 @@ Then (/^I should see an "([^"]+)" caption on the add new button$/) do |caption|
end
Then (/^I should not see an "([^"]+)" caption on the add new button$/) do |caption|
+ # if its not visible the selector wont find it
page.should have_no_selector(:xpath, "//li[contains(@class,\"add-new\")]/a/span[1]")
end \ No newline at end of file