await addAbuseMessage(servers[0].url, servers[0].accessToken, abuseId, message)
await waitJobs(servers)
- await checkNewAbuseMessage(baseParamsAdmin, abuseId, message, 'admin1@example.com', 'absence')
+ await checkNewAbuseMessage(baseParamsAdmin, abuseId, message, 'admin' + servers[0].internalServerNumber + '@example.com', 'absence')
})
it('Should send a notification to moderators', async function () {
await addAbuseMessage(servers[0].url, userAccessToken, abuseId2, message)
await waitJobs(servers)
- await checkNewAbuseMessage(baseParamsAdmin, abuseId2, message, 'admin1@example.com', 'presence')
+ await checkNewAbuseMessage(baseParamsAdmin, abuseId2, message, 'admin' + servers[0].internalServerNumber + '@example.com', 'presence')
})
it('Should not send a notification to reporter if sent by the reporter', async function () {
})
it('Should send notification to moderators on new video with auto-blacklist', async function () {
- this.timeout(20000)
+ this.timeout(40000)
videoName = 'video with auto-blacklist ' + uuidv4()
const resVideo = await uploadVideo(servers[0].url, userAccessToken, { name: videoName })
})
it('Should send video published and unblacklist after video unblacklisted', async function () {
- this.timeout(20000)
+ this.timeout(40000)
await removeVideoFromBlacklist(servers[0].url, servers[0].accessToken, videoUUID)