From 5ff05139a3b7f2beddf14d761d36ff4878debaa2 Mon Sep 17 00:00:00 2001 From: Florian Staudacher Date: Wed, 28 Aug 2013 12:51:39 +0200 Subject: [PATCH] fix failing cuke - blocking from profile page --- features/desktop/blocks_user.feature | 2 +- features/step_definitions/posts_steps.rb | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/features/desktop/blocks_user.feature b/features/desktop/blocks_user.feature index a82c55e33..6057252a7 100644 --- a/features/desktop/blocks_user.feature +++ b/features/desktop/blocks_user.feature @@ -20,7 +20,7 @@ Feature: Blocking a user from the stream Scenario: Blocking a user from the profile page When I am on the home page And I follow "Alice Smith" - When I click on the first block button + When I click on the profile block button And I confirm the alert And I am on the home page Then I should not see any posts in my stream diff --git a/features/step_definitions/posts_steps.rb b/features/step_definitions/posts_steps.rb index ade6b1cfc..672b2eb8f 100644 --- a/features/step_definitions/posts_steps.rb +++ b/features/step_definitions/posts_steps.rb @@ -39,6 +39,10 @@ When /^I click on the first block button/ do find(".block_user").click end +When /^I click on the profile block button/ do + find("#profile_buttons .block_user").click +end + When /^I expand the post$/ do expand_first_post end