Merge pull request #6848 from cmrd-senya/6841-likes-from-profile
Fix like and reshare from the profile page
This commit is contained in:
commit
8c8368d813
2 changed files with 11 additions and 2 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue