aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/moderation/abuses.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/moderation/abuses.ts')
-rw-r--r--server/tests/api/moderation/abuses.ts26
1 files changed, 0 insertions, 26 deletions
diff --git a/server/tests/api/moderation/abuses.ts b/server/tests/api/moderation/abuses.ts
index d9c164c43..9fc296ea8 100644
--- a/server/tests/api/moderation/abuses.ts
+++ b/server/tests/api/moderation/abuses.ts
@@ -124,8 +124,6 @@ describe('Test abuses', function () {
124 }) 124 })
125 125
126 it('Should report abuse on a remote video', async function () { 126 it('Should report abuse on a remote video', async function () {
127 this.timeout(10000)
128
129 const reason = 'my super bad reason 2' 127 const reason = 'my super bad reason 2'
130 const videoId = await servers[0].videos.getId({ uuid: servers[1].store.videoCreated.uuid }) 128 const videoId = await servers[0].videos.getId({ uuid: servers[1].store.videoCreated.uuid })
131 await commands[0].report({ videoId, reason }) 129 await commands[0].report({ videoId, reason })
@@ -197,8 +195,6 @@ describe('Test abuses', function () {
197 }) 195 })
198 196
199 it('Should hide video abuses from blocked accounts', async function () { 197 it('Should hide video abuses from blocked accounts', async function () {
200 this.timeout(10000)
201
202 { 198 {
203 const videoId = await servers[1].videos.getId({ uuid: servers[0].store.videoCreated.uuid }) 199 const videoId = await servers[1].videos.getId({ uuid: servers[0].store.videoCreated.uuid })
204 await commands[1].report({ videoId, reason: 'will mute this' }) 200 await commands[1].report({ videoId, reason: 'will mute this' })
@@ -250,8 +246,6 @@ describe('Test abuses', function () {
250 }) 246 })
251 247
252 it('Should keep the video abuse when deleting the video', async function () { 248 it('Should keep the video abuse when deleting the video', async function () {
253 this.timeout(10000)
254
255 await servers[1].videos.remove({ id: abuseServer2.video.uuid }) 249 await servers[1].videos.remove({ id: abuseServer2.video.uuid })
256 250
257 await waitJobs(servers) 251 await waitJobs(servers)
@@ -268,8 +262,6 @@ describe('Test abuses', function () {
268 }) 262 })
269 263
270 it('Should include counts of reports from reporter and reportee', async function () { 264 it('Should include counts of reports from reporter and reportee', async function () {
271 this.timeout(10000)
272
273 // register a second user to have two reporters/reportees 265 // register a second user to have two reporters/reportees
274 const user = { username: 'user2', password: 'password' } 266 const user = { username: 'user2', password: 'password' }
275 await servers[0].users.create({ ...user }) 267 await servers[0].users.create({ ...user })
@@ -307,8 +299,6 @@ describe('Test abuses', function () {
307 }) 299 })
308 300
309 it('Should list predefined reasons as well as timestamps for the reported video', async function () { 301 it('Should list predefined reasons as well as timestamps for the reported video', async function () {
310 this.timeout(10000)
311
312 const reason5 = 'my super bad reason 5' 302 const reason5 = 'my super bad reason 5'
313 const predefinedReasons5: AbusePredefinedReasonsString[] = [ 'violentOrRepulsive', 'captions' ] 303 const predefinedReasons5: AbusePredefinedReasonsString[] = [ 'violentOrRepulsive', 'captions' ]
314 const createRes = await commands[0].report({ 304 const createRes = await commands[0].report({
@@ -331,8 +321,6 @@ describe('Test abuses', function () {
331 }) 321 })
332 322
333 it('Should delete the video abuse', async function () { 323 it('Should delete the video abuse', async function () {
334 this.timeout(10000)
335
336 await commands[1].delete({ abuseId: abuseServer2.id }) 324 await commands[1].delete({ abuseId: abuseServer2.id })
337 325
338 await waitJobs(servers) 326 await waitJobs(servers)
@@ -351,8 +339,6 @@ describe('Test abuses', function () {
351 }) 339 })
352 340
353 it('Should list and filter video abuses', async function () { 341 it('Should list and filter video abuses', async function () {
354 this.timeout(10000)
355
356 async function list (query: Parameters<AbusesCommand['getAdminList']>[0]) { 342 async function list (query: Parameters<AbusesCommand['getAdminList']>[0]) {
357 const body = await commands[0].getAdminList(query) 343 const body = await commands[0].getAdminList(query)
358 344
@@ -457,8 +443,6 @@ describe('Test abuses', function () {
457 }) 443 })
458 444
459 it('Should report abuse on a remote comment', async function () { 445 it('Should report abuse on a remote comment', async function () {
460 this.timeout(10000)
461
462 const comment = await getComment(servers[0], servers[1].store.videoCreated.uuid) 446 const comment = await getComment(servers[0], servers[1].store.videoCreated.uuid)
463 447
464 const reason = 'it is a really bad comment' 448 const reason = 'it is a really bad comment'
@@ -525,8 +509,6 @@ describe('Test abuses', function () {
525 }) 509 })
526 510
527 it('Should keep the comment abuse when deleting the comment', async function () { 511 it('Should keep the comment abuse when deleting the comment', async function () {
528 this.timeout(10000)
529
530 const commentServer2 = await getComment(servers[0], servers[1].store.videoCreated.uuid) 512 const commentServer2 = await getComment(servers[0], servers[1].store.videoCreated.uuid)
531 513
532 await servers[0].comments.delete({ videoId: servers[1].store.videoCreated.uuid, commentId: commentServer2.id }) 514 await servers[0].comments.delete({ videoId: servers[1].store.videoCreated.uuid, commentId: commentServer2.id })
@@ -546,8 +528,6 @@ describe('Test abuses', function () {
546 }) 528 })
547 529
548 it('Should delete the comment abuse', async function () { 530 it('Should delete the comment abuse', async function () {
549 this.timeout(10000)
550
551 await commands[1].delete({ abuseId: abuseServer2.id }) 531 await commands[1].delete({ abuseId: abuseServer2.id })
552 532
553 await waitJobs(servers) 533 await waitJobs(servers)
@@ -645,8 +625,6 @@ describe('Test abuses', function () {
645 }) 625 })
646 626
647 it('Should report abuse on a remote account', async function () { 627 it('Should report abuse on a remote account', async function () {
648 this.timeout(10000)
649
650 const account = await getAccountFromServer(servers[0], 'user_2', servers[1]) 628 const account = await getAccountFromServer(servers[0], 'user_2', servers[1])
651 629
652 const reason = 'it is a really bad account' 630 const reason = 'it is a really bad account'
@@ -699,8 +677,6 @@ describe('Test abuses', function () {
699 }) 677 })
700 678
701 it('Should keep the account abuse when deleting the account', async function () { 679 it('Should keep the account abuse when deleting the account', async function () {
702 this.timeout(10000)
703
704 const account = await getAccountFromServer(servers[1], 'user_2', servers[1]) 680 const account = await getAccountFromServer(servers[1], 'user_2', servers[1])
705 await servers[1].users.remove({ userId: account.userId }) 681 await servers[1].users.remove({ userId: account.userId })
706 682
@@ -715,8 +691,6 @@ describe('Test abuses', function () {
715 }) 691 })
716 692
717 it('Should delete the account abuse', async function () { 693 it('Should delete the account abuse', async function () {
718 this.timeout(10000)
719
720 await commands[1].delete({ abuseId: abuseServer2.id }) 694 await commands[1].delete({ abuseId: abuseServer2.id })
721 695
722 await waitJobs(servers) 696 await waitJobs(servers)