diff --git a/features/desktop/profile_photos.feature b/features/desktop/profile_photos.feature index 02039a25e..7af405fb2 100644 --- a/features/desktop/profile_photos.feature +++ b/features/desktop/profile_photos.feature @@ -31,6 +31,6 @@ Feature: show photos When I am on "robert@grimm.grimm"'s photos page And I delete a photo And I confirm the alert - Then I should not see ".deleting" within ".stream" + Then I should not see a ".stream" When I am on "robert@grimm.grimm"'s page Then I should not see "Photos" within "#profile_horizontal_bar" diff --git a/features/step_definitions/custom_web_steps.rb b/features/step_definitions/custom_web_steps.rb index bc1ed8e7c..98225c6be 100644 --- a/features/step_definitions/custom_web_steps.rb +++ b/features/step_definitions/custom_web_steps.rb @@ -160,7 +160,7 @@ end Then /^(?:|I )should not see a "([^\"]*)"(?: within "([^\"]*)")?$/ do |selector, scope_selector| with_scope(scope_selector) do - current_scope.has_css?(selector, :visible => true).should be false + current_scope.should have_no_css(selector, :visible => true) end end