Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tests-only][full-ci] Test for mail notification to group members if a space is shared #6633

Merged
merged 1 commit into from
Jun 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,33 @@ Feature: Email notification
Click here to view it: %base_url%/files/shares/with-me
"""


Scenario: group members get an email notification when someone shares a project space with the group
Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Carol" has been created with default attributes and without skeleton files
And group "group1" has been created
And user "Brian" has been added to group "group1"
nirajacharya2 marked this conversation as resolved.
Show resolved Hide resolved
And user "Carol" 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%
"""
nirajacharya2 marked this conversation as resolved.
Show resolved Hide resolved
And user "Carol" should have received the following email from user "Alice" about the share of project space "new-space"
"""
Hello Carol King,
%displayname% has invited you to join "new-space".
Click here to view it: %base_url%/f/%space_id%
"""