summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2023-02-21 15:31:04 +0100
committerGitHub <noreply@github.com>2023-02-21 15:31:04 +0100
commitdf1469e9d2041c17d7ae26f883c7d4fd043e66fb (patch)
tree8668dc2e9afd565eb8ee50714caf17f0e4b23c92 /tests
parent94c2a10e1483a3e61568dec642f9eaec7b465cfe (diff)
parent45f694dbc65e8bca504b7dc737b9ea2012a85cc9 (diff)
Merge pull request #8806 from nextcloud/bugfix/8759/change-recording-notification-object-type
Change notification object type for call recordings to allow better handling in mobile clients
Diffstat (limited to 'tests')
-rw-r--r--tests/integration/features/bootstrap/FeatureContext.php3
-rw-r--r--tests/integration/features/callapi/recording.feature4
2 files changed, 5 insertions, 2 deletions
diff --git a/tests/integration/features/bootstrap/FeatureContext.php b/tests/integration/features/bootstrap/FeatureContext.php
index 09e0ae5b1..eb7b1d31b 100644
--- a/tests/integration/features/bootstrap/FeatureContext.php
+++ b/tests/integration/features/bootstrap/FeatureContext.php
@@ -2753,6 +2753,9 @@ class FeatureContext implements Context, SnippetAcceptingContext {
}
if (isset($expectedNotification['subject'])) {
$data['subject'] = (string) $notification['subject'];
+ if (str_contains($expectedNotification['subject'], '{{TOKEN}}')) {
+ $data['subject'] = str_replace($notification['object_id'], '{{TOKEN}}', $data['subject']);
+ }
}
if (isset($expectedNotification['object_type'])) {
$data['object_type'] = (string) $notification['object_type'];
diff --git a/tests/integration/features/callapi/recording.feature b/tests/integration/features/callapi/recording.feature
index e87f581ff..9f83f6276 100644
--- a/tests/integration/features/callapi/recording.feature
+++ b/tests/integration/features/callapi/recording.feature
@@ -202,8 +202,8 @@ Feature: callapi/recording
And user "participant1" joins room "room1" with 200 (v4)
When user "participant1" store recording file "/img/join_call.ogg" in room "room1" with 200 (v1)
Then user "participant1" has the following notifications
- | app | object_type | object_id | subject |
- | spreed | chat | room1 | Recording for the call in room1 was uploaded. |
+ | app | object_type | object_id | subject |
+ | spreed | recording | room1 | Recording for the call in room1 was uploaded to /Talk/Recording/{{TOKEN}}/join_call.ogg. |
And user "participant1" is participant of the following unordered rooms (v4)
| type | name | callRecording |
| 2 | room1 | 0 |