1
0
mirror of https://github.com/owncloud/ocis.git synced 2025-04-18 23:44:07 +03:00

Merge pull request #11215 from owncloud/test/add-tests-space-membership-expired

[tests-only][full-ci] Add test to receive an email notification when space membership expire
This commit is contained in:
Deyan Zhekov 2025-04-10 06:33:07 +03:00 committed by GitHub
commit 1ba41ffab3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -274,3 +274,26 @@ Feature: Notification
Zum Ansehen hier klicken: %base_url%/f/%space_id%
"""
@issue-10882 @email
Scenario: user gets in-app and email notifications when space membership expires
Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "new-space" with the default quota using the Graph API
And user "Alice" has sent the following space share invitation:
| space | new-space |
| sharee | Brian |
| shareType | user |
| permissionsRole | Space Viewer |
When user "Alice" has expired the membership of user "Brian" from space "new-space"
Then the HTTP status code should be "200"
And user "Brian" should get a notification with subject "Membership expired" and message:
| message |
| Access to Space new-space lost |
And user "Brian" should have received the following email from user "Alice" about the share of project space "new-space"
"""
Hello Brian Murphy,
Your membership of space new-space has expired at %expiry_date_in_mail%
Even though this membership has expired you still might have access through other shares and/or space memberships
"""