-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests to delete all notification
- Loading branch information
1 parent
f091fe7
commit 75047f3
Showing
4 changed files
with
116 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
tests/acceptance/features/apiNotification/deleteNotification.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
@api | ||
Feature: Notification | ||
As a user | ||
I want to delete notifications | ||
So that I can filter notifications | ||
|
||
Background: | ||
Given these users have been created with default attributes and without skeleton files: | ||
| username | | ||
| Alice | | ||
| Brian | | ||
And user "Alice" has uploaded file with content "other data" to "/textfile1.txt" | ||
And user "Alice" has created folder "my_data" | ||
|
||
|
||
Scenario: user deletes a notification | ||
Given user "Alice" has shared entry "my_data" with user "Brian" | ||
And user "Alice" has shared entry "/textfile1.txt" with user "Brian" | ||
When user "Brian" deletes the notification related to resource "my_data" with subject "Resource shared" | ||
Then the HTTP status code should be "200" | ||
And user "Brian" should have a notification with subject "Resource shared" and message: | ||
| message | | ||
| Alice Hansen shared textfile1.txt with you | | ||
|
||
|
||
Scenario: user deletes all notification | ||
Given user "Alice" has shared entry "my_data" with user "Brian" | ||
And user "Alice" has shared entry "/textfile1.txt" with user "Brian" | ||
When user "Brian" deletes all notification | ||
Then the HTTP status code should be "200" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters