aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api')
-rw-r--r--server/tests/api/users/user-notifications.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/server/tests/api/users/user-notifications.ts b/server/tests/api/users/user-notifications.ts
index 69e51677e..6c6d208f5 100644
--- a/server/tests/api/users/user-notifications.ts
+++ b/server/tests/api/users/user-notifications.ts
@@ -508,6 +508,20 @@ describe('Test users notifications', function () {
508 await removeAccountFromAccountBlocklist(servers[ 0 ].url, userAccessToken, 'root') 508 await removeAccountFromAccountBlocklist(servers[ 0 ].url, userAccessToken, 'root')
509 }) 509 })
510 510
511 it('Should not send a new mention notification if the remote account mention a local account', async function () {
512 this.timeout(20000)
513
514 const resVideo = await uploadVideo(servers[0].url, servers[0].accessToken, { name: 'super video' })
515 const uuid = resVideo.body.video.uuid
516
517 await waitJobs(servers)
518 const resThread = await addVideoCommentThread(servers[1].url, servers[1].accessToken, uuid, '@user_1 hello')
519 const threadId = resThread.body.comment.id
520
521 await waitJobs(servers)
522 await checkCommentMention(baseParams, uuid, threadId, threadId, 'super root 2 name', 'absence')
523 })
524
511 it('Should send a new mention notification after local comments', async function () { 525 it('Should send a new mention notification after local comments', async function () {
512 this.timeout(10000) 526 this.timeout(10000)
513 527