Skip to content

Commit c2243fd

Browse files
Use <user-role> as a parameter for scenarios in notificationSetting.feature
1 parent 6729e63 commit c2243fd

File tree

1 file changed

+45
-15
lines changed

1 file changed

+45
-15
lines changed

tests/acceptance/features/apiSettings/notificationSetting.feature

+45-15
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@ Feature: Notification Settings
6464
| permissionsRole | Viewer |
6565
And user "Brian" should have "0" emails
6666

67-
@email
68-
Scenario: disable mail and in-app notification for "Share Received" event
67+
@issue-10937 @email
68+
Scenario Outline: disable mail and in-app notification for "Share Received" event
69+
Given the administrator has assigned the role "<user-role>" to user "Brian" using the Graph API
6970
When user "Brian" disables notification for the following event using the settings API:
7071
| event | Share Received |
7172
| notificationTypes | mail,in-app |
@@ -153,10 +154,15 @@ Feature: Notification Settings
153154
When user "Brian" lists all notifications
154155
Then the HTTP status code should be "200"
155156
And the notifications should be empty
157+
Examples:
158+
| user-role |
159+
| User |
160+
| User Light |
156161

157-
@email
158-
Scenario: disable mail and in-app notification for "Share Removed" event
159-
Given user "Alice" has sent the following resource share invitation:
162+
@issue-10937 @email
163+
Scenario Outline: disable mail and in-app notification for "Share Removed" event
164+
Given the administrator has assigned the role "<user-role>" to user "Brian" using the Graph API
165+
And user "Alice" has sent the following resource share invitation:
160166
| resource | lorem.txt |
161167
| space | Personal |
162168
| sharee | Brian |
@@ -245,13 +251,18 @@ Feature: Notification Settings
245251
| message |
246252
| Alice Hansen shared lorem.txt with you |
247253
But user "Brian" should not have a notification related to resource "lorem.txt" with subject "Resource unshared"
254+
Examples:
255+
| user-role |
256+
| User |
257+
| User Light |
248258

249-
@email
250-
Scenario: disable mail and in-app notification for "Share Removed" event (Project space)
259+
@issue-10937 @email
260+
Scenario Outline: disable mail and in-app notification for "Share Removed" event (Project space)
251261
Given using spaces DAV path
252262
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
253263
And user "Alice" has created a space "newSpace" with the default quota using the Graph API
254264
And user "Alice" has uploaded a file inside space "newSpace" with content "some content" to "insideSpace.txt"
265+
And the administrator has assigned the role "<user-role>" to user "Brian" using the Graph API
255266
And user "Alice" has sent the following resource share invitation:
256267
| resource | insideSpace.txt |
257268
| space | newSpace |
@@ -341,11 +352,16 @@ Feature: Notification Settings
341352
| message |
342353
| Alice Hansen shared insideSpace.txt with you |
343354
But user "Brian" should not have a notification related to resource "insideSpace.txt" with subject "Resource unshared"
355+
Examples:
356+
| user-role |
357+
| User |
358+
| User Light |
344359

345-
346-
Scenario: disable in-app notification for "Space disabled" event
360+
@issue-10937
361+
Scenario Outline: disable in-app notification for "Space disabled" event
347362
Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
348363
And user "Alice" has created a space "new-space" with the default quota using the Graph API
364+
And the administrator has assigned the role "<user-role>" to user "Brian" using the Graph API
349365
And user "Alice" has sent the following space share invitation:
350366
| space | new-space |
351367
| sharee | Brian |
@@ -437,9 +453,13 @@ Feature: Notification Settings
437453
| message |
438454
| Alice Hansen added you to Space new-space |
439455
But user "Brian" should not have a notification related to space "new-space" with subject "Space disabled"
456+
Examples:
457+
| user-role |
458+
| User |
459+
| User Light |
440460

441461
@issue-10864 @email
442-
Scenario: disable email notification for user light
462+
Scenario: disable email notification for User Light mode
443463
Given the administrator has assigned the role "User Light" to user "Brian" using the Graph API
444464
When user "Brian" disables email notification using the settings API
445465
Then the HTTP status code should be "201"
@@ -495,11 +515,12 @@ Feature: Notification Settings
495515
| Alice Hansen shared lorem.txt with you |
496516
And user "Brian" should have "0" emails
497517

498-
@email
499-
Scenario: disable mail and in-app notification for "Added as space member" event
518+
@issue-10937 @email
519+
Scenario Outline: disable mail and in-app notification for "Added as space member" event
500520
Given using spaces DAV path
501521
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
502522
And user "Alice" has created a space "newSpace" with the default quota using the Graph API
523+
And the administrator has assigned the role "<user-role>" to user "Brian" using the Graph API
503524
When user "Brian" disables notification for the following event using the settings API:
504525
| event | Added As Space Member |
505526
| notificationTypes | mail,in-app |
@@ -586,6 +607,10 @@ Feature: Notification Settings
586607
Then the HTTP status code should be "200"
587608
And the notifications should be empty
588609
And user "Brian" should have "0" emails
610+
Examples:
611+
| user-role |
612+
| User |
613+
| User Light |
589614

590615
@email
591616
Scenario: no email should be received when email sending interval is set to never
@@ -644,11 +669,12 @@ Feature: Notification Settings
644669
| Alice Hansen shared lorem.txt with you |
645670
And user "Brian" should have "0" emails
646671

647-
@email
648-
Scenario: disable mail and in-app notification for "Removed as space member" event
672+
@issue-10937 @email
673+
Scenario Outline: disable mail and in-app notification for "Removed as space member" event
649674
Given using spaces DAV path
650675
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
651676
And user "Alice" has created a space "newSpace" with the default quota using the Graph API
677+
And the administrator has assigned the role "<user-role>" to user "Brian" using the Graph API
652678
And user "Alice" has sent the following space share invitation:
653679
| space | newSpace |
654680
| sharee | Brian |
@@ -745,6 +771,10 @@ Feature: Notification Settings
745771
746772
Click here to view it: %base_url%/f/%space_id%
747773
"""
774+
Examples:
775+
| user-role |
776+
| User |
777+
| User Light |
748778

749779
@email
750780
Scenario: disable mail and in-app notification for "Space Membership Expired" event
@@ -850,7 +880,7 @@ Feature: Notification Settings
850880
"""
851881

852882

853-
Scenario: disable share expired in-app and mail notification
883+
Scenario: disable mail and in-app notification for "Share Expired" event
854884
Given using SharingNG
855885
And user "Alice" has uploaded file with content "hello world" to "testfile.txt"
856886
When user "Brian" disables notification for the following event using the settings API:

0 commit comments

Comments
 (0)