Skip to content

Commit

Permalink
[tests-only][full-ci]Backport delete notification tests coverage (#6836)
Browse files Browse the repository at this point in the history
* Add tests for space notification (#6372)

* Add tests for deleting specific notification
  • Loading branch information
amrita-shrestha authored Jul 18, 2023
1 parent 9183906 commit b88cd12
Show file tree
Hide file tree
Showing 7 changed files with 701 additions and 184 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
@api
Feature: Delete 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"
And user "Alice" has shared folder "my_data" with user "Brian"
And user "Alice" has shared file "/textfile1.txt" with user "Brian"


Scenario: delete a notification
When user "Brian" deletes a 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 |
But user "Brian" should not have a notification related to resource "my_data" with subject "Resource shared"


Scenario: delete all notifications
When user "Brian" deletes all notifications
Then the HTTP status code should be "200"
And user "Brian" should not have any notification
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,6 @@ Feature: Notification
Examples:
| language | subject | message |
| de | Neue Freigabe | Alice Hansen hat textfile1.txt mit Ihnen geteilt |
| en | Resource shared | Alice Hansen shared textfile1.txt with you |
| es | Recurso compartido | Alice Hansen compartió textfile1.txt contigo |


Expand Down
Loading

0 comments on commit b88cd12

Please sign in to comment.