Skip to content

Commit 6729e63

Browse files
Updated more scenarios in spaceNotification.feature
1 parent 9ab93f7 commit 6729e63

File tree

1 file changed

+24
-9
lines changed

1 file changed

+24
-9
lines changed

tests/acceptance/features/apiNotification/spaceNotification.feature

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Feature: Notification
9191

9292
@issue-10937 @email
9393
Scenario Outline: gets in-app and mail notification of space unshared
94-
And the administrator has assigned the role "<user-role>" to user "Brian" using the Graph API
94+
Given the administrator has assigned the role "<user-role>" to user "Brian" using the Graph API
9595
When user "Alice" removes the access of user "Brian" from space "notification checking" using root endpoint of the Graph API
9696
Then the HTTP status code should be "204"
9797
And user "Brian" should get a notification with subject "Removed from Space" and message:
@@ -112,8 +112,10 @@ Feature: Notification
112112
| User |
113113
| User Light |
114114

115-
Scenario: user gets in-app notification of space disabled (note: no mail notification)
116-
Given user "Alice" has disabled a space "notification checking"
115+
@issue-10937
116+
Scenario Outline: user gets in-app notification of space disabled (note: no mail notification)
117+
Given the administrator has assigned the role "<user-role>" to user "Brian" using the Graph API
118+
And user "Alice" has disabled a space "notification checking"
117119
When user "Brian" lists all notifications
118120
Then the HTTP status code should be "200"
119121
And there should be "2" notifications
@@ -170,7 +172,10 @@ Feature: Notification
170172
}
171173
}
172174
"""
173-
175+
Examples:
176+
| user-role |
177+
| User |
178+
| User Light |
174179

175180
Scenario Outline: get in-app notification about a space share in various languages
176181
Given user "Brian" has switched the system language to "<language>" using the Graph API
@@ -200,15 +205,20 @@ Feature: Notification
200205
Then the HTTP status code should be "200"
201206
And the notifications should be empty
202207

203-
@email
204-
Scenario: user doesn't get any notification after being removed from space(note: no mail notification)
205-
Given user "Alice" has removed the access of user "Brian" from space "notification checking"
208+
@issue-10937 @email
209+
Scenario Outline: user doesn't get any notification after being removed from space (note: no mail notification)
210+
Given the administrator has assigned the role "<user-role>" to user "Brian" using the Graph API
211+
And user "Alice" has removed the access of user "Brian" from space "notification checking"
206212
And user "Alice" has disabled a space "notification checking"
207213
When user "Brian" lists all notifications
208214
Then the HTTP status code should be "200"
209215
And there should be "2" notifications
210216
And user "Brian" should have "2" emails
211217
But user "Brian" should not have a notification related to space "notification checking" with subject "Space disabled"
218+
Examples:
219+
| user-role |
220+
| User |
221+
| User Light |
212222

213223
@email
214224
Scenario: group members get in-app and email notifications when someone shares a project space with the group
@@ -284,8 +294,9 @@ Feature: Notification
284294
Zum Ansehen hier klicken: %base_url%/f/%space_id%
285295
"""
286296

287-
@issue-10882 @email
288-
Scenario: user gets in-app and email notifications when space membership expires
297+
@issue-10937 @issue-10882 @email
298+
Scenario Outline: user gets in-app and email notifications when space membership expires
299+
Given the administrator has assigned the role "<user-role>" to user "Brian" using the Graph API
289300
When user "Alice" has expired the membership of user "Brian" from space "notification checking"
290301
Then the HTTP status code should be "200"
291302
And user "Brian" should get a notification with subject "Membership expired" and message:
@@ -299,3 +310,7 @@ Feature: Notification
299310
300311
Even though this membership has expired you still might have access through other shares and/or space memberships
301312
"""
313+
Examples:
314+
| user-role |
315+
| User |
316+
| User Light |

0 commit comments

Comments
 (0)