-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve link to original post in reshared polls
- Loading branch information
Steffen van Bergerem
committed
Mar 15, 2015
1 parent
9589cb2
commit 81cd175
Showing
6 changed files
with
45 additions
and
25 deletions.
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
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 |
---|---|---|
|
@@ -11,10 +11,11 @@ Feature: public repost | |
| Alice Smith | alice@alice.alice | | ||
| Eve Doe | eve@eve.eve | | ||
And a user with email "[email protected]" is connected with "[email protected]" | ||
And a user with email "[email protected]" is connected with "[email protected]" | ||
And "[email protected]" has a public post with text "reshare this!" | ||
|
||
Scenario: Resharing a post from a single post page | ||
Given "[email protected]" has a public post with text "reshare this!" | ||
And I sign in as "[email protected]" | ||
Given I sign in as "[email protected]" | ||
And I am on "[email protected]"'s page | ||
And I open the show page of the "reshare this!" post | ||
And I click on selector "a.reshare" | ||
|
@@ -23,8 +24,7 @@ Feature: public repost | |
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]" | ||
Given 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 open the show page of the "reshare this!" post | ||
|
@@ -33,12 +33,21 @@ Feature: public repost | |
Then I should see a flash message indicating success | ||
And I should see a flash message containing "successfully" | ||
|
||
Scenario: Delete original reshared post | ||
Given "[email protected]" has a public post with text "Don't reshare this!" | ||
And the post with text "Don't reshare this!" is reshared by "[email protected]" | ||
And I sign in as "[email protected]" | ||
And I am on "[email protected]"'s page | ||
|
||
When I click to delete the first post | ||
And I log out | ||
And I sign in as "[email protected]" | ||
Then I should see "Original post deleted by author" within ".reshare" | ||
|
||
# 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 | ||
Given "[email protected]" has a public post with text "reshare this!" | ||
And I sign in as "[email protected]" | ||
|
||
Given I sign in as "[email protected]" | ||
And I follow "Reshare" | ||
And I confirm the alert | ||
Then I should see a flash message indicating success | ||
|
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