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.
This commit is contained in:
cmrd Senya 2016-06-03 03:49:03 +03:00
parent ac70d72190
commit 3b8b04ada8
No known key found for this signature in database
GPG key ID: 5FCC5BA680E67BFE
2 changed files with 11 additions and 2 deletions

View file

@ -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"

View file

@ -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