Skip to content

Commit

Permalink
added test for mail notification to group members if a space is share…
Browse files Browse the repository at this point in the history
…d with them
  • Loading branch information
nirajacharya2 committed Jun 27, 2023
1 parent cd304b4 commit cf748b5
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,23 @@ Feature: Email notification
Click here to view it: %base_url%/files/shares/with-me
"""


Scenario: user gets an email notification when someone shares space to group
Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And group "group1" has been created
And user "Brian" has been added to group "group1"
And user "Alice" has created a space "new-space" with the default quota using the GraphApi
When user "Alice" shares a space "new-space" with settings:
| shareWith | group1 |
| shareType | 8 |
| role | viewer |
Then the HTTP status code should be "200"
And user "Brian" should have received the following email from user "Alice" about the share of project space "new-space"
"""
Hello Brian Murphy,
%displayname% has invited you to join "new-space".
Click here to view it: %base_url%/f/%space_id%
"""

0 comments on commit cf748b5

Please sign in to comment.