-
Notifications
You must be signed in to change notification settings - Fork 482
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue 2802 by removing user name from deleted comment placeholder
- Loading branch information
Showing
4 changed files
with
61 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,50 @@ | |||
@comments | |||
Feature: Delete a comment | |||
In order to remove a comment from public view | |||
As a user | |||
I want to be able to delete a comment I added | |||
As an author | |||
I want to be able to delete a comment a reader added to my work | |||
|
|||
Scenario: User deletes a comment they added to a work | |||
When I am logged in as "author" | |||
And I post the work "Awesome story" | |||
When I am logged in as "commenter" | |||
And I post the comment "Fail comment" on the work "Awesome story" | |||
And I delete the comment | |||
Then I should see "Comment deleted." | |||
|
|||
Scenario: User deletes a comment they added to a work and which is the parent of another comment | |||
When I am logged in as "author" | |||
And I post the work "Awesome story" | |||
When I am logged in as "commenter1" | |||
And I post the comment "Fail comment" on the work "Awesome story" | |||
And I reply to a comment with "I didn't mean that" | |||
And I delete the comment | |||
Then I should see "Comment deleted." | |||
And I should see "(Previous comment deleted.)" | |||
And I should see "I didn't mean that" | |||
|
|||
Scenario: Author deletes a comment another user added to their work | |||
When I am logged in as "author" | |||
And I post the work "Awesome story" | |||
When I am logged in as "commenter" | |||
And I post the comment "Fail comment" on the work "Awesome story" | |||
When I am logged in as "author" | |||
And I view the work "Awesome story" with comments | |||
And I delete the comment | |||
Then I should see "Comment deleted." | |||
|
|||
Scenario: Author deletes a parent comment that another user added to their work | |||
When I am logged in as "author" | |||
And I post the work "Awesome story" | |||
When I am logged in as "commenter" | |||
And I post the comment "Fail comment" on the work "Awesome story" | |||
And I reply to a comment with "I didn't mean that" | |||
When I am logged in as "author" | |||
And I view the work "Awesome story" with comments | |||
And I delete the comment | |||
Then I should see "Comment deleted." | |||
And I should see "(Previous comment deleted.)" | |||
And I should see "I didn't mean that" | |||
|
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