Files
ocis/tests/acceptance/features/apiNotification/emailNotification.feature
T
Viktor Scharf 5e7d09b715 [full-ci] Port prs from master to stable-3.0 (#6542)
* last space manager cannot change his role

* release template

* changed issue number in changelog

* fix code expectation

* fix

* using Graph instead Of Setting Method In Tests

* delete test

* remove tests from expected failures list
2023-06-19 08:34:17 +02:00

43 lines
1.5 KiB
Gherkin

@api @email
Feature: Email notification
As a user
I want to get email notification of events related to me
So that I can stay updated about the events
Background:
Given these users have been created with default attributes and without skeleton files:
| username |
| Alice |
| Brian |
Scenario: user gets an email notification when someone shares a project space
Given the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API
And user "Alice" has created a space "new-space" with the default quota using the GraphApi
When user "Alice" shares a space "new-space" with settings:
| shareWith | Brian |
| role | Editor |
Then the HTTP status code should be "200"
And user "Brian" should have received the following email from user "Alice" about the share of project space "new-space"
"""
Hello Brian Murphy,
%displayname% has invited you to join "new-space".
Click here to view it: %base_url%/f/%space_id%
"""
Scenario: user gets an email notification when someone shares a file
Given user "Alice" has uploaded file with content "sample text" to "lorem.txt"
When user "Alice" has shared file "lorem.txt" with user "Brian" with permissions "17"
Then the HTTP status code should be "200"
And user "Brian" should have received the following email from user "Alice"
"""
Hello Brian Murphy
%displayname% has shared "lorem.txt" with you.
Click here to view it: %base_url%/files/shares/with-me
"""