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