Skip to content
Extraits de code Groupes Projets
Non vérifiée Valider 3b8b04ad rédigé par cmrd Senya's avatar cmrd Senya
Parcourir les fichiers

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.
parent ac70d721
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
- if @post_type == :photos - if @post_type == :photos
= render "photos/index", photos: @posts = render "photos/index", photos: @posts
- else - else
#main_stream .stream#main_stream
- if @stream.stream_posts.length > 0 - if @stream.stream_posts.length > 0
= render "shared/stream", posts: @stream.stream_posts = render "shared/stream", posts: @stream.stream_posts
= render "shared/stream_more_button" = render "shared/stream_more_button"
......
...@@ -15,7 +15,16 @@ Feature: reactions mobile post ...@@ -15,7 +15,16 @@ Feature: reactions mobile post
Scenario: like on a mobile post Scenario: like on a mobile post
When I should see "No reactions" within ".show-comments" 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" And I click on selector "a.like-action.inactive"
Then I should see a "a.like-action.active" Then I should see a "a.like-action.active"
When I go to the stream page When I go to the stream page
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter