@@ -42,11 +42,25 @@ Feature: public repost
42
42
And I sign in as "bob@bob.bob"
43
43
Then I should see "Original post deleted by author" within ".reshare"
44
44
45
- # should be covered in rspec, so testing that the post is added to
46
- # app.stream in jasmine should be enough coverage
47
- Scenario : When I reshare, it shows up on my profile page
48
- Given I sign in as "alice@alice.alice"
49
- And I confirm the alert after I follow "Reshare"
45
+ Scenario : Reshare a post from the stream
46
+ When I sign in as "alice@alice.alice"
47
+ Then I should see a ".reshare" within ".feedback"
48
+ When I confirm the alert after I follow "Reshare"
49
+ Then I should see a flash message indicating success
50
+ And I should see a flash message containing "successfully"
51
+ And I should not see a ".reshare" within ".feedback"
52
+
53
+ Scenario : Reshare a post from another user's profile
54
+ When I sign in as "alice@alice.alice"
55
+ And I am on "bob@bob.bob" 's page
56
+ Then I should see a ".reshare" within ".feedback"
57
+ When I confirm the alert after I follow "Reshare"
50
58
Then I should see a flash message indicating success
51
59
And I should see a flash message containing "successfully"
52
60
And I should not see a ".reshare" within ".feedback"
61
+
62
+ Scenario : Try to reshare an already reshared post from another user's profile
63
+ Given the post with text "reshare this!" is reshared by "alice@alice.alice"
64
+ When I sign in as "alice@alice.alice"
65
+ And I am on "bob@bob.bob" 's page
66
+ Then I should not see a ".reshare" within ".feedback"
0 commit comments