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

Remove Given steps for the Scenario

Reduce the total steps for the following scenario:
 - user gets in-app and email notifications when space membership expires
This commit is contained in:
Deyan Zhekov 2025-04-11 16:20:42 +03:00
parent f2885d8781
commit 89835a2b9d

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
"""