2025-02-06 12:37:46 +05:45
|
|
|
@notification
|
2023-07-18 14:12:45 +05:45
|
|
|
Feature: Delete notification
|
|
|
|
|
As a user
|
|
|
|
|
I want to delete notifications
|
|
|
|
|
So that I can filter notifications
|
|
|
|
|
|
|
|
|
|
Background:
|
2024-11-29 09:39:21 +05:45
|
|
|
Given these users have been created with default attributes:
|
2023-07-18 14:12:45 +05:45
|
|
|
| username |
|
|
|
|
|
| Alice |
|
|
|
|
|
| Brian |
|
|
|
|
|
And user "Alice" has uploaded file with content "other data" to "/textfile1.txt"
|
|
|
|
|
And user "Alice" has created folder "my_data"
|
2024-05-09 12:25:57 +05:45
|
|
|
And user "Alice" has sent the following resource share invitation:
|
|
|
|
|
| resource | my_data |
|
|
|
|
|
| space | Personal |
|
|
|
|
|
| sharee | Brian |
|
|
|
|
|
| shareType | user |
|
|
|
|
|
| permissionsRole | Viewer |
|
|
|
|
|
And user "Alice" has sent the following resource share invitation:
|
|
|
|
|
| resource | textfile1.txt |
|
|
|
|
|
| space | Personal |
|
|
|
|
|
| sharee | Brian |
|
|
|
|
|
| shareType | user |
|
|
|
|
|
| permissionsRole | Viewer |
|
2023-07-18 14:12:45 +05:45
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
2025-07-15 14:51:00 +05:45
|
|
|
|
|
|
|
|
|
|
|
|
|
Scenario: delete a notification using id
|
|
|
|
|
When user "Brian" deletes a notification related to resource "my_data" with subject "Resource shared" using id
|
|
|
|
|
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"
|