import 'mocha'
import * as chai from 'chai'
-import { cleanupTests, getVideoCommentThreads, getVideoThreadComments, updateMyUser } from '../../../../shared/extra-utils'
-import { ServerInfo, uploadVideo } from '../../../../shared/extra-utils/index'
-import { MockSmtpServer } from '../../../../shared/extra-utils/miscs/email'
-import { waitJobs } from '../../../../shared/extra-utils/server/jobs'
-import { addAccountToAccountBlocklist, removeAccountFromAccountBlocklist } from '../../../../shared/extra-utils/users/blocklist'
import {
+ addAccountToAccountBlocklist,
+ addVideoCommentReply,
+ addVideoCommentThread,
checkCommentMention,
CheckerBaseParams,
checkNewCommentOnMyVideo,
- prepareNotificationsTest
-} from '../../../../shared/extra-utils/users/user-notifications'
-import { addVideoCommentReply, addVideoCommentThread } from '../../../../shared/extra-utils/videos/video-comments'
-import { UserNotification } from '../../../../shared/models/users'
-import { VideoCommentThreadTree } from '../../../../shared/models/videos/video-comment.model'
+ cleanupTests,
+ getVideoCommentThreads,
+ getVideoThreadComments,
+ MockSmtpServer,
+ prepareNotificationsTest,
+ removeAccountFromAccountBlocklist,
+ ServerInfo,
+ updateMyUser,
+ uploadVideo,
+ waitJobs
+} from '@shared/extra-utils'
+import { UserNotification, VideoCommentThreadTree } from '@shared/models'
const expect = chai.expect
})
it('Should not send a new comment notification after a comment on another video', async function () {
- this.timeout(10000)
+ this.timeout(20000)
const resVideo = await uploadVideo(servers[0].url, servers[0].accessToken, { name: 'super video' })
const uuid = resVideo.body.video.uuid
})
it('Should not send a new comment notification if I comment my own video', async function () {
- this.timeout(10000)
+ this.timeout(20000)
const resVideo = await uploadVideo(servers[0].url, userAccessToken, { name: 'super video' })
const uuid = resVideo.body.video.uuid
})
it('Should not send a new comment notification if the account is muted', async function () {
- this.timeout(10000)
+ this.timeout(20000)
await addAccountToAccountBlocklist(servers[0].url, userAccessToken, 'root')
})
it('Should send a new comment notification after a local comment on my video', async function () {
- this.timeout(10000)
+ this.timeout(20000)
const resVideo = await uploadVideo(servers[0].url, userAccessToken, { name: 'super video' })
const uuid = resVideo.body.video.uuid
})
it('Should send a new comment notification after a remote comment on my video', async function () {
- this.timeout(10000)
+ this.timeout(20000)
const resVideo = await uploadVideo(servers[0].url, userAccessToken, { name: 'super video' })
const uuid = resVideo.body.video.uuid
})
it('Should send a new comment notification after a local reply on my video', async function () {
- this.timeout(10000)
+ this.timeout(20000)
const resVideo = await uploadVideo(servers[0].url, userAccessToken, { name: 'super video' })
const uuid = resVideo.body.video.uuid
})
it('Should send a new comment notification after a remote reply on my video', async function () {
- this.timeout(10000)
+ this.timeout(20000)
const resVideo = await uploadVideo(servers[0].url, userAccessToken, { name: 'super video' })
const uuid = resVideo.body.video.uuid
})
it('Should convert markdown in comment to html', async function () {
- this.timeout(10000)
+ this.timeout(20000)
const resVideo = await uploadVideo(servers[0].url, userAccessToken, { name: 'cool video' })
const uuid = resVideo.body.video.uuid