From 3b8b04ada8b6e0d8678b6e1f3140d604c76166dd Mon Sep 17 00:00:00 2001 From: cmrd Senya Date: Fri, 3 Jun 2016 03:49:03 +0300 Subject: [PATCH] Fix like and reshare from the profile page Fix class assignment in the mobile view of profile page. Add a cuke testing the "liking from the profile view" feature. --- app/views/people/show.mobile.haml | 2 +- features/mobile/reactions.feature | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/app/views/people/show.mobile.haml b/app/views/people/show.mobile.haml index 2cfb2b22f..29120725b 100644 --- a/app/views/people/show.mobile.haml +++ b/app/views/people/show.mobile.haml @@ -19,7 +19,7 @@ - if @post_type == :photos = render "photos/index", photos: @posts - else - #main_stream + .stream#main_stream - if @stream.stream_posts.length > 0 = render "shared/stream", posts: @stream.stream_posts = render "shared/stream_more_button" diff --git a/features/mobile/reactions.feature b/features/mobile/reactions.feature index c44cbd4c6..ecaf0dd05 100644 --- a/features/mobile/reactions.feature +++ b/features/mobile/reactions.feature @@ -15,7 +15,16 @@ Feature: reactions mobile post Scenario: like on a mobile post When I should see "No reactions" within ".show-comments" - And I click on selector "span.show-comments" + And I click on selector "a.like-action.inactive" + Then I should see a "a.like-action.active" + When I go to the stream page + And I should see "1 reaction" within ".show-comments" + And I click on selector "a.show-comments" + Then I should see "1" within ".like-count" + + Scenario: liking from the profile view + When I am on "alice@alice.alice"'s page + Then I should see "No reactions" within ".show-comments" And I click on selector "a.like-action.inactive" Then I should see a "a.like-action.active" When I go to the stream page