Skip to content

Commit 3411b67

Browse files
add tests for share expiry notification
1 parent ac1689b commit 3411b67

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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+
@issue-10966
14+
Scenario: check share expired in-app and mail notification for Project space resource
15+
Given using spaces DAV path
16+
And using SharingNG
17+
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
18+
And user "Alice" has created a space "NewSpace" with the default quota using the Graph API
19+
And user "Alice" has uploaded a file inside space "NewSpace" with content "share space items" to "testfile.txt"
20+
And user "Alice" has sent the following resource share invitation:
21+
| resource | testfile.txt |
22+
| space | NewSpace |
23+
| sharee | Brian |
24+
| shareType | user |
25+
| permissionsRole | Viewer |
26+
| expirationDateTime | 2025-07-15T14:00:00Z |
27+
When user "Alice" expires the last share of resource "testfile.txt" inside of the space "NewSpace"
28+
Then the HTTP status code should be "200"
29+
And user "Brian" should get a notification with subject "Membership expired" and message:
30+
| message |
31+
| Access to Space NewSpace lost |
32+
And user "Brian" should have "2" emails

0 commit comments

Comments
 (0)