-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[tests-only][full-ci] adding test for disabling in-app notifications for space disabled event #10895
base: master
Are you sure you want to change the base?
Conversation
48dd824
to
4e99c78
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you address this missing review from your before PR #10828 (comment)
tests/acceptance/features/apiSettings/notificationSetting.feature
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are saying email is not possible for space disabling event but your scenario include that so confusing
cea5b7a
to
f94ed59
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is there Alice uploading same file twice ? i know its past PR task but could you plz look over it
Background:
Given these users have been created with default attributes:
| username |
| Alice |
| Brian |
And user "Alice" has uploaded file with content "some data" to "lorem.txt"
Scenario: disable email notification
Given user "Alice" has uploaded file with content "some data" to "lorem.txt"
f94ed59
to
1259f23
Compare
removed it |
1259f23
to
38a692d
Compare
tests/acceptance/features/apiSettings/notificationSetting.feature
Outdated
Show resolved
Hide resolved
7d770e2
to
41910bf
Compare
Then the HTTP status code should be "200" | ||
And there should be "1" notifications | ||
And the JSON response should contain a notification message with the subject "Space shared" and the message-details should match |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And the JSON response should contain a notification message with the subject "Space shared" and the message-details should match |
instead of checking json, is it possible to do something like this 👇 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nirajacharya2 use such step rather than json
And user "Brian" should get a notification with subject "Resource shared" and message:
| message |
| Alice Hansen shared insideSpace.txt with you |
But user "Brian" should not have a notification related to resource "insideSpace.txt" with subject "Resource unshared"
If you are not clear, than go to this merged PR and look https://github.com/owncloud/ocis/pull/10893/files#diff-28929748f6f2bda8fa8eb4dc0cd3e83ff0eacbcbbd89a5f6205c9683de994d66R322-R328
tests/acceptance/features/apiSettings/notificationSetting.feature
Outdated
Show resolved
Hide resolved
41910bf
to
9a23ed9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
even though you didn't check share notification but check 1 notification exist so fine for me. lgtm
9a23ed9
to
49e3e49
Compare
Quality Gate passedIssues Measures |
| message | | ||
| Alice Hansen added you to Space new-space | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| message | | |
| Alice Hansen added you to Space new-space | | |
| message | | |
| Alice Hansen added you to Space new-space | |
"extension":{ | ||
"const": "ocis-accounts" | ||
}, | ||
"bundle":{ | ||
"const": "profile" | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similarly in other places as well.
"extension":{ | |
"const": "ocis-accounts" | |
}, | |
"bundle":{ | |
"const": "profile" | |
}, | |
"extension":{ "const": "ocis-accounts" }, | |
"bundle":{ "const": "profile" }, |
], | ||
"properties":{ | ||
"id":{ | ||
"pattern":"%user_id_pattern%" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"pattern":"%user_id_pattern%" | |
"pattern":"%uuidv4_pattern%" |
LGTM 👍 (except the above comments) |
Description
This PR adds test for disabling in-app notifications for space disabled event.
enabling or disabling notification for email is not available for this event.
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: