diff options
author | Chocobozzz <me@florianbigard.com> | 2019-02-14 13:17:10 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-02-14 13:17:10 +0100 |
commit | 98d33a03d3a86aad709e2cd39a4e4d8bac6b7664 (patch) | |
tree | d8e1e8d21054fc4d966c009bdd05333a2a6e44cb /server/tests/api/users/user-notifications.ts | |
parent | 73471b1a52f242e86364ffb077ea6cadb3b07ae2 (diff) | |
parent | 340f31ce96c456942fb01800f31d795e0f355d74 (diff) | |
download | PeerTube-98d33a03d3a86aad709e2cd39a4e4d8bac6b7664.tar.gz PeerTube-98d33a03d3a86aad709e2cd39a4e4d8bac6b7664.tar.zst PeerTube-98d33a03d3a86aad709e2cd39a4e4d8bac6b7664.zip |
Merge branch 'release/v1.2.0'
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 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 | ||