|
| 1 | +@notification @email |
| 2 | +Feature: Share Expiry Notification |
| 3 | + As a user |
| 4 | + I want to be notified when share expires |
| 5 | + So that I can stay updated about the share |
| 6 | + |
| 7 | + Background: |
| 8 | + Given these users have been created with default attributes: |
| 9 | + | username | |
| 10 | + | Alice | |
| 11 | + | Brian | |
| 12 | + |
| 13 | + |
| 14 | + Scenario: check share expired in-app and mail notification for Personal space resource |
| 15 | + Given user "Alice" has uploaded file with content "hello world" to "testfile.txt" |
| 16 | + And user "Alice" has sent the following resource share invitation: |
| 17 | + | resource | testfile.txt | |
| 18 | + | space | Personal | |
| 19 | + | sharee | Brian | |
| 20 | + | shareType | user | |
| 21 | + | permissionsRole | Viewer | |
| 22 | + | expirationDateTime | 2025-07-15T14:00:00Z | |
| 23 | + When user "Alice" expires the last created share: |
| 24 | + | space | Personal | |
| 25 | + | resource | testfile.txt | |
| 26 | + Then the HTTP status code should be "200" |
| 27 | + And user "Brian" should get a notification with subject "Membership expired" and message: |
| 28 | + | message | |
| 29 | + | Access to Space Alice Hansen lost | |
| 30 | + And user "Brian" should have "2" emails |
| 31 | + |
| 32 | + |
| 33 | + Scenario: check share expired in-app and mail notification for Project space resource |
| 34 | + Given using spaces DAV path |
| 35 | + And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API |
| 36 | + And user "Alice" has created a space "NewSpace" with the default quota using the Graph API |
| 37 | + And user "Alice" has uploaded a file inside space "NewSpace" with content "share space items" to "testfile.txt" |
| 38 | + And user "Alice" has sent the following resource share invitation: |
| 39 | + | resource | testfile.txt | |
| 40 | + | space | NewSpace | |
| 41 | + | sharee | Brian | |
| 42 | + | shareType | user | |
| 43 | + | permissionsRole | Viewer | |
| 44 | + | expirationDateTime | 2025-07-15T14:00:00Z | |
| 45 | + When user "Alice" expires the last created share: |
| 46 | + | space | NewSpace | |
| 47 | + | resource | testfile.txt | |
| 48 | + Then the HTTP status code should be "200" |
| 49 | + And user "Brian" should get a notification with subject "Membership expired" and message: |
| 50 | + | message | |
| 51 | + | Access to Space NewSpace lost | |
| 52 | + And user "Brian" should have "2" emails |
0 commit comments