forked from loomio/loomio
-
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 loomio#396 from enspiral/bug/non-member-mentions
Do not notify non-group members when at-mentioned.
- Loading branch information
Showing
7 changed files
with
60 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 |
---|---|---|
|
@@ -6,13 +6,25 @@ Background: | |
Given a group "demo-group" with "[email protected]" as admin | ||
And I am logged in as "[email protected]" | ||
|
||
Scenario: Mention user in comment | ||
Scenario: Mention user when writing a comment | ||
Given "[email protected]" is a member of "demo-group" | ||
And I am viewing a discussion titled "hello" in "demo-group" | ||
When I am adding a comment and type in "@h" | ||
And I click on "@harry" in the menu that pops up | ||
Then I should see "@harry" added to the "new-comment" field | ||
|
||
Scenario: Submit a comment mentioning a group member | ||
Given "[email protected]" is a member of "demo-group" | ||
And I am viewing a discussion titled "hello" in "demo-group" | ||
When I submit a comment mentioning "@harry" | ||
Then the user should be notified that they were mentioned | ||
|
||
Scenario: Submit a comment mentioning a group non-member | ||
Given "[email protected]" is a member of "a different group" | ||
And I am viewing a discussion titled "hello" in "demo-group" | ||
When I submit a comment mentioning "@harry" | ||
Then the user should not be notified that they were mentioned | ||
|
||
Scenario: View comment with mentions | ||
Given "[email protected]" is a member of "demo-group" | ||
And I am viewing a discussion titled "hello" in "demo-group" | ||
|
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