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

Merge pull request #11233 from owncloud/test/notifications-for-space-membership-expired-fixes

[tests-only][full-ci] Update test to receive an email notification when space membership expire
This commit is contained in:
Sawjan Gurung 2025-04-15 09:42:05 +05:45 committed by GitHub
commit d2ff8f49ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -277,23 +277,16 @@ Feature: Notification
@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"
When user "Alice" has expired the membership of user "Brian" from space "notification checking"
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"
| message |
| Access to Space notification checking lost |
And user "Brian" should have received the following email from user "Alice" about the share of project space "notification checking"
"""
Hello Brian Murphy,
Your membership of space new-space has expired at %expiry_date_in_mail%
Your membership of space notification checking 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
"""