forked from diaspora/diaspora
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request diaspora#4056 from marpo60/fix-4023
fix reshares in single post-view
- Loading branch information
Showing
4 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ Feature: public repost | |
| username | email | | ||
| Bob Jones | bob@bob.bob | | ||
| Alice Smith | alice@alice.alice | | ||
| Eve Doe | eve@eve.eve | | ||
And a user with email "[email protected]" is connected with "[email protected]" | ||
|
||
Scenario: Resharing a post from a single post page | ||
|
@@ -23,6 +24,19 @@ Feature: public repost | |
Then I should see a flash message indicating success | ||
And I should see a flash message containing "successfully" | ||
|
||
Scenario: Resharing a post from a single post page that is reshared | ||
Given "[email protected]" has a public post with text "reshare this!" | ||
And the post with text "reshare this!" is reshared by "[email protected]" | ||
And I sign in as "[email protected]" | ||
And I am on "[email protected]"'s page | ||
And I follow "Last Post" | ||
|
||
And I preemptively confirm the alert | ||
And I click on selector "a.reshare" | ||
And I wait for the ajax to finish | ||
Then I should see a flash message indicating success | ||
And I should see a flash message containing "successfully" | ||
|
||
# should be covered in rspec, so testing that the post is added to | ||
# app.stream in jasmine should be enough coverage | ||
Scenario: When I reshare, it shows up on my profile page | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters