From ee5d8b73e5252b938f7b0625f2beddd8875af611 Mon Sep 17 00:00:00 2001 From: Deyan Zhekov Date: Tue, 8 Apr 2025 10:22:07 +0300 Subject: [PATCH] Add new API acceptance test for issue #10882 --- .../apiSpaces/spaceManagement.feature | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tests/acceptance/features/apiSpaces/spaceManagement.feature b/tests/acceptance/features/apiSpaces/spaceManagement.feature index 11e2a140de2..abd06046b76 100644 --- a/tests/acceptance/features/apiSpaces/spaceManagement.feature +++ b/tests/acceptance/features/apiSpaces/spaceManagement.feature @@ -186,3 +186,24 @@ Feature: Space management When user "Carol" tries to restore a disabled space "Project" owned by user "Alice" Then the HTTP status code should be "404" And the user "Alice" should have a space "Project" in the disable state + + @issue-10882 + Scenario: user gets an email notification when space membership expire + 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" shares a space "new-space" with settings: + | shareWith | Brian | + | space | new-space | + | role | viewer | + | permissionsRole | Space Viewer | + | expirationDateTime | 2042-03-25T23:59:59.000Z | + When user "Alice" has expired the membership of user "Brian" from space "new-space" + Then 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 + """ +