diff options
author | Chocobozzz <me@florianbigard.com> | 2019-02-14 11:04:50 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-02-14 11:04:50 +0100 |
commit | 6e8cf67a6f7c20f9e43dd7bfc111f6b494e11c50 (patch) | |
tree | d800773db62d13efeae8ede3a2cddc30f8739d86 /server/tests/api | |
parent | bf12db2497689cb3fcf648ef6fc07a699d1b20d8 (diff) | |
download | PeerTube-6e8cf67a6f7c20f9e43dd7bfc111f6b494e11c50.tar.gz PeerTube-6e8cf67a6f7c20f9e43dd7bfc111f6b494e11c50.tar.zst PeerTube-6e8cf67a6f7c20f9e43dd7bfc111f6b494e11c50.zip |
Fix mention notification with a remote account
Diffstat (limited to 'server/tests/api')
-rw-r--r-- | server/tests/api/users/user-notifications.ts | 14 |
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 5260d64cc..72b6a0aa2 100644 --- a/server/tests/api/users/user-notifications.ts +++ b/server/tests/api/users/user-notifications.ts | |||
@@ -506,6 +506,20 @@ describe('Test users notifications', function () { | |||
506 | await removeAccountFromAccountBlocklist(servers[ 0 ].url, userAccessToken, 'root') | 506 | await removeAccountFromAccountBlocklist(servers[ 0 ].url, userAccessToken, 'root') |
507 | }) | 507 | }) |
508 | 508 | ||
509 | it('Should not send a new mention notification if the remote account mention a local account', async function () { | ||
510 | this.timeout(20000) | ||
511 | |||
512 | const resVideo = await uploadVideo(servers[0].url, servers[0].accessToken, { name: 'super video' }) | ||
513 | const uuid = resVideo.body.video.uuid | ||
514 | |||
515 | await waitJobs(servers) | ||
516 | const resThread = await addVideoCommentThread(servers[1].url, servers[1].accessToken, uuid, '@user_1 hello') | ||
517 | const threadId = resThread.body.comment.id | ||
518 | |||
519 | await waitJobs(servers) | ||
520 | await checkCommentMention(baseParams, uuid, threadId, threadId, 'super root 2 name', 'absence') | ||
521 | }) | ||
522 | |||
509 | it('Should send a new mention notification after local comments', async function () { | 523 | it('Should send a new mention notification after local comments', async function () { |
510 | this.timeout(10000) | 524 | this.timeout(10000) |
511 | 525 | ||