diff options
author | Chocobozzz <me@florianbigard.com> | 2019-02-14 11:04:50 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-02-15 09:43:37 +0100 |
commit | 1f6d57e354ef69b66525ac25684a3d7c59e1db57 (patch) | |
tree | 299cf86442e51b635d996fdb1949d0eda85a5f4f /server/tests/api/users/user-notifications.ts | |
parent | 72be63e56f5d93de05b2601300ec782f8076c4bf (diff) | |
download | PeerTube-1f6d57e354ef69b66525ac25684a3d7c59e1db57.tar.gz PeerTube-1f6d57e354ef69b66525ac25684a3d7c59e1db57.tar.zst PeerTube-1f6d57e354ef69b66525ac25684a3d7c59e1db57.zip |
Fix mention notification with a remote account
Diffstat (limited to 'server/tests/api/users/user-notifications.ts')
-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 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 | ||