- await checkCommentMention(baseParams, uuid, commentId, server1ThreadId, 'super root 2 name', 'presence')
+ await checkCommentMention({ ...baseParams, shortUUID, commentId, threadId, byAccountDisplayName, checkType: 'presence' })
+ })
+
+ it('Should convert markdown in comment to html', async function () {
+ this.timeout(30000)
+
+ const { uuid } = await servers[0].videos.upload({ attributes: { name: 'super video' } })
+
+ const { id: threadId } = await servers[0].comments.createThread({ videoId: uuid, text: '@user_1 hello 1' })
+
+ await servers[0].comments.addReply({ videoId: uuid, toCommentId: threadId, text: '@user_1 ' + commentText })
+
+ await waitJobs(servers)
+
+ const latestEmail = emails[emails.length - 1]
+ expect(latestEmail['html']).to.contain(expectedHtml)