From 9a047749fc3a2a41f0098d1173423fbef95359e1 Mon Sep 17 00:00:00 2001 From: Steffen van Bergerem Date: Tue, 2 Dec 2014 23:56:54 +0100 Subject: [PATCH] Fix delete a photo cuke --- features/desktop/profile_photos.feature | 2 +- features/step_definitions/custom_web_steps.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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