aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api/notifications/user-notifications.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tests/api/notifications/user-notifications.ts')
-rw-r--r--server/tests/api/notifications/user-notifications.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/server/tests/api/notifications/user-notifications.ts b/server/tests/api/notifications/user-notifications.ts
index c87686cb5..47e85a30c 100644
--- a/server/tests/api/notifications/user-notifications.ts
+++ b/server/tests/api/notifications/user-notifications.ts
@@ -7,7 +7,7 @@ import {
7 checkMyVideoImportIsFinished, 7 checkMyVideoImportIsFinished,
8 checkNewActorFollow, 8 checkNewActorFollow,
9 checkNewVideoFromSubscription, 9 checkNewVideoFromSubscription,
10 checkVideoEditionIsFinished, 10 checkVideoStudioEditionIsFinished,
11 checkVideoIsPublished, 11 checkVideoIsPublished,
12 FIXTURE_URLS, 12 FIXTURE_URLS,
13 MockSmtpServer, 13 MockSmtpServer,
@@ -16,7 +16,7 @@ import {
16} from '@server/tests/shared' 16} from '@server/tests/shared'
17import { wait } from '@shared/core-utils' 17import { wait } from '@shared/core-utils'
18import { buildUUID } from '@shared/extra-utils' 18import { buildUUID } from '@shared/extra-utils'
19import { UserNotification, UserNotificationType, VideoEditorTask, VideoPrivacy } from '@shared/models' 19import { UserNotification, UserNotificationType, VideoStudioTask, VideoPrivacy } from '@shared/models'
20import { cleanupTests, PeerTubeServer, waitJobs } from '@shared/server-commands' 20import { cleanupTests, PeerTubeServer, waitJobs } from '@shared/server-commands'
21 21
22const expect = chai.expect 22const expect = chai.expect
@@ -323,7 +323,7 @@ describe('Test user notifications', function () {
323 }) 323 })
324 }) 324 })
325 325
326 describe('Video editor', function () { 326 describe('Video studio', function () {
327 let baseParams: CheckerBaseParams 327 let baseParams: CheckerBaseParams
328 328
329 before(() => { 329 before(() => {
@@ -335,7 +335,7 @@ describe('Test user notifications', function () {
335 } 335 }
336 }) 336 })
337 337
338 it('Should send a notification after editor edition', async function () { 338 it('Should send a notification after studio edition', async function () {
339 this.timeout(240000) 339 this.timeout(240000)
340 340
341 const { name, shortUUID, id } = await uploadRandomVideoOnServers(servers, 2, { waitTranscoding: true }) 341 const { name, shortUUID, id } = await uploadRandomVideoOnServers(servers, 2, { waitTranscoding: true })
@@ -343,7 +343,7 @@ describe('Test user notifications', function () {
343 await waitJobs(servers) 343 await waitJobs(servers)
344 await checkVideoIsPublished({ ...baseParams, videoName: name, shortUUID, checkType: 'presence' }) 344 await checkVideoIsPublished({ ...baseParams, videoName: name, shortUUID, checkType: 'presence' })
345 345
346 const tasks: VideoEditorTask[] = [ 346 const tasks: VideoStudioTask[] = [
347 { 347 {
348 name: 'cut', 348 name: 'cut',
349 options: { 349 options: {
@@ -352,10 +352,10 @@ describe('Test user notifications', function () {
352 } 352 }
353 } 353 }
354 ] 354 ]
355 await servers[1].videoEditor.createEditionTasks({ videoId: id, tasks }) 355 await servers[1].videoStudio.createEditionTasks({ videoId: id, tasks })
356 await waitJobs(servers) 356 await waitJobs(servers)
357 357
358 await checkVideoEditionIsFinished({ ...baseParams, videoName: name, shortUUID, checkType: 'presence' }) 358 await checkVideoStudioEditionIsFinished({ ...baseParams, videoName: name, shortUUID, checkType: 'presence' })
359 }) 359 })
360 }) 360 })
361 361