diff options
Diffstat (limited to 'server/tests')
-rw-r--r-- | server/tests/api/check-params/config.ts | 2 | ||||
-rw-r--r-- | server/tests/api/check-params/index.ts | 2 | ||||
-rw-r--r-- | server/tests/api/check-params/user-notifications.ts | 2 | ||||
-rw-r--r-- | server/tests/api/check-params/video-studio.ts (renamed from server/tests/api/check-params/video-editor.ts) | 40 | ||||
-rw-r--r-- | server/tests/api/notifications/user-notifications.ts | 14 | ||||
-rw-r--r-- | server/tests/api/server/config.ts | 6 | ||||
-rw-r--r-- | server/tests/api/transcoding/index.ts | 2 | ||||
-rw-r--r-- | server/tests/api/transcoding/video-studio.ts (renamed from server/tests/api/transcoding/video-editor.ts) | 18 | ||||
-rw-r--r-- | server/tests/shared/notifications.ts | 10 |
9 files changed, 48 insertions, 48 deletions
diff --git a/server/tests/api/check-params/config.ts b/server/tests/api/check-params/config.ts index 900f642c2..c8dbbf797 100644 --- a/server/tests/api/check-params/config.ts +++ b/server/tests/api/check-params/config.ts | |||
@@ -148,7 +148,7 @@ describe('Test config API validators', function () { | |||
148 | } | 148 | } |
149 | } | 149 | } |
150 | }, | 150 | }, |
151 | videoEditor: { | 151 | videoStudio: { |
152 | enabled: true | 152 | enabled: true |
153 | }, | 153 | }, |
154 | import: { | 154 | import: { |
diff --git a/server/tests/api/check-params/index.ts b/server/tests/api/check-params/index.ts index c088b52cd..c9adeef4a 100644 --- a/server/tests/api/check-params/index.ts +++ b/server/tests/api/check-params/index.ts | |||
@@ -25,7 +25,7 @@ import './video-blacklist' | |||
25 | import './video-captions' | 25 | import './video-captions' |
26 | import './video-channels' | 26 | import './video-channels' |
27 | import './video-comments' | 27 | import './video-comments' |
28 | import './video-editor' | 28 | import './video-studio' |
29 | import './video-imports' | 29 | import './video-imports' |
30 | import './video-playlists' | 30 | import './video-playlists' |
31 | import './videos' | 31 | import './videos' |
diff --git a/server/tests/api/check-params/user-notifications.ts b/server/tests/api/check-params/user-notifications.ts index 93355e8b3..7fbe4271b 100644 --- a/server/tests/api/check-params/user-notifications.ts +++ b/server/tests/api/check-params/user-notifications.ts | |||
@@ -171,7 +171,7 @@ describe('Test user notifications API validators', function () { | |||
171 | abuseNewMessage: UserNotificationSettingValue.WEB, | 171 | abuseNewMessage: UserNotificationSettingValue.WEB, |
172 | abuseStateChange: UserNotificationSettingValue.WEB, | 172 | abuseStateChange: UserNotificationSettingValue.WEB, |
173 | newPeerTubeVersion: UserNotificationSettingValue.WEB, | 173 | newPeerTubeVersion: UserNotificationSettingValue.WEB, |
174 | myVideoEditionFinished: UserNotificationSettingValue.WEB, | 174 | myVideoStudioEditionFinished: UserNotificationSettingValue.WEB, |
175 | newPluginVersion: UserNotificationSettingValue.WEB | 175 | newPluginVersion: UserNotificationSettingValue.WEB |
176 | } | 176 | } |
177 | 177 | ||
diff --git a/server/tests/api/check-params/video-editor.ts b/server/tests/api/check-params/video-studio.ts index 5f5faf8fb..9ca55d095 100644 --- a/server/tests/api/check-params/video-editor.ts +++ b/server/tests/api/check-params/video-studio.ts | |||
@@ -1,19 +1,19 @@ | |||
1 | /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ | 1 | /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ |
2 | 2 | ||
3 | import 'mocha' | 3 | import 'mocha' |
4 | import { HttpStatusCode, VideoEditorTask } from '@shared/models' | 4 | import { HttpStatusCode, VideoStudioTask } from '@shared/models' |
5 | import { | 5 | import { |
6 | cleanupTests, | 6 | cleanupTests, |
7 | createSingleServer, | 7 | createSingleServer, |
8 | PeerTubeServer, | 8 | PeerTubeServer, |
9 | setAccessTokensToServers, | 9 | setAccessTokensToServers, |
10 | VideoEditorCommand, | 10 | VideoStudioCommand, |
11 | waitJobs | 11 | waitJobs |
12 | } from '@shared/server-commands' | 12 | } from '@shared/server-commands' |
13 | 13 | ||
14 | describe('Test video editor API validator', function () { | 14 | describe('Test video studio API validator', function () { |
15 | let server: PeerTubeServer | 15 | let server: PeerTubeServer |
16 | let command: VideoEditorCommand | 16 | let command: VideoStudioCommand |
17 | let userAccessToken: string | 17 | let userAccessToken: string |
18 | let videoUUID: string | 18 | let videoUUID: string |
19 | 19 | ||
@@ -32,7 +32,7 @@ describe('Test video editor API validator', function () { | |||
32 | const { uuid } = await server.videos.quickUpload({ name: 'video' }) | 32 | const { uuid } = await server.videos.quickUpload({ name: 'video' }) |
33 | videoUUID = uuid | 33 | videoUUID = uuid |
34 | 34 | ||
35 | command = server.videoEditor | 35 | command = server.videoStudio |
36 | 36 | ||
37 | await waitJobs([ server ]) | 37 | await waitJobs([ server ]) |
38 | }) | 38 | }) |
@@ -41,10 +41,10 @@ describe('Test video editor API validator', function () { | |||
41 | 41 | ||
42 | describe('Config settings', function () { | 42 | describe('Config settings', function () { |
43 | 43 | ||
44 | it('Should fail if editor is disabled', async function () { | 44 | it('Should fail if studio is disabled', async function () { |
45 | await server.config.updateExistingSubConfig({ | 45 | await server.config.updateExistingSubConfig({ |
46 | newConfig: { | 46 | newConfig: { |
47 | videoEditor: { | 47 | videoStudio: { |
48 | enabled: false | 48 | enabled: false |
49 | } | 49 | } |
50 | } | 50 | } |
@@ -52,15 +52,15 @@ describe('Test video editor API validator', function () { | |||
52 | 52 | ||
53 | await command.createEditionTasks({ | 53 | await command.createEditionTasks({ |
54 | videoId: videoUUID, | 54 | videoId: videoUUID, |
55 | tasks: VideoEditorCommand.getComplexTask(), | 55 | tasks: VideoStudioCommand.getComplexTask(), |
56 | expectedStatus: HttpStatusCode.BAD_REQUEST_400 | 56 | expectedStatus: HttpStatusCode.BAD_REQUEST_400 |
57 | }) | 57 | }) |
58 | }) | 58 | }) |
59 | 59 | ||
60 | it('Should fail to enable editor if transcoding is disabled', async function () { | 60 | it('Should fail to enable studio if transcoding is disabled', async function () { |
61 | await server.config.updateExistingSubConfig({ | 61 | await server.config.updateExistingSubConfig({ |
62 | newConfig: { | 62 | newConfig: { |
63 | videoEditor: { | 63 | videoStudio: { |
64 | enabled: true | 64 | enabled: true |
65 | }, | 65 | }, |
66 | transcoding: { | 66 | transcoding: { |
@@ -71,10 +71,10 @@ describe('Test video editor API validator', function () { | |||
71 | }) | 71 | }) |
72 | }) | 72 | }) |
73 | 73 | ||
74 | it('Should succeed to enable video editor', async function () { | 74 | it('Should succeed to enable video studio', async function () { |
75 | await server.config.updateExistingSubConfig({ | 75 | await server.config.updateExistingSubConfig({ |
76 | newConfig: { | 76 | newConfig: { |
77 | videoEditor: { | 77 | videoStudio: { |
78 | enabled: true | 78 | enabled: true |
79 | }, | 79 | }, |
80 | transcoding: { | 80 | transcoding: { |
@@ -91,7 +91,7 @@ describe('Test video editor API validator', function () { | |||
91 | await command.createEditionTasks({ | 91 | await command.createEditionTasks({ |
92 | token: null, | 92 | token: null, |
93 | videoId: videoUUID, | 93 | videoId: videoUUID, |
94 | tasks: VideoEditorCommand.getComplexTask(), | 94 | tasks: VideoStudioCommand.getComplexTask(), |
95 | expectedStatus: HttpStatusCode.UNAUTHORIZED_401 | 95 | expectedStatus: HttpStatusCode.UNAUTHORIZED_401 |
96 | }) | 96 | }) |
97 | }) | 97 | }) |
@@ -100,7 +100,7 @@ describe('Test video editor API validator', function () { | |||
100 | await command.createEditionTasks({ | 100 | await command.createEditionTasks({ |
101 | token: userAccessToken, | 101 | token: userAccessToken, |
102 | videoId: videoUUID, | 102 | videoId: videoUUID, |
103 | tasks: VideoEditorCommand.getComplexTask(), | 103 | tasks: VideoStudioCommand.getComplexTask(), |
104 | expectedStatus: HttpStatusCode.FORBIDDEN_403 | 104 | expectedStatus: HttpStatusCode.FORBIDDEN_403 |
105 | }) | 105 | }) |
106 | }) | 106 | }) |
@@ -108,7 +108,7 @@ describe('Test video editor API validator', function () { | |||
108 | it('Should fail with an invalid video', async function () { | 108 | it('Should fail with an invalid video', async function () { |
109 | await command.createEditionTasks({ | 109 | await command.createEditionTasks({ |
110 | videoId: 'tintin', | 110 | videoId: 'tintin', |
111 | tasks: VideoEditorCommand.getComplexTask(), | 111 | tasks: VideoStudioCommand.getComplexTask(), |
112 | expectedStatus: HttpStatusCode.BAD_REQUEST_400 | 112 | expectedStatus: HttpStatusCode.BAD_REQUEST_400 |
113 | }) | 113 | }) |
114 | }) | 114 | }) |
@@ -116,7 +116,7 @@ describe('Test video editor API validator', function () { | |||
116 | it('Should fail with an unknown video', async function () { | 116 | it('Should fail with an unknown video', async function () { |
117 | await command.createEditionTasks({ | 117 | await command.createEditionTasks({ |
118 | videoId: 42, | 118 | videoId: 42, |
119 | tasks: VideoEditorCommand.getComplexTask(), | 119 | tasks: VideoStudioCommand.getComplexTask(), |
120 | expectedStatus: HttpStatusCode.NOT_FOUND_404 | 120 | expectedStatus: HttpStatusCode.NOT_FOUND_404 |
121 | }) | 121 | }) |
122 | }) | 122 | }) |
@@ -132,7 +132,7 @@ describe('Test video editor API validator', function () { | |||
132 | 132 | ||
133 | await command.createEditionTasks({ | 133 | await command.createEditionTasks({ |
134 | videoId: uuid, | 134 | videoId: uuid, |
135 | tasks: VideoEditorCommand.getComplexTask(), | 135 | tasks: VideoStudioCommand.getComplexTask(), |
136 | expectedStatus: HttpStatusCode.CONFLICT_409 | 136 | expectedStatus: HttpStatusCode.CONFLICT_409 |
137 | }) | 137 | }) |
138 | 138 | ||
@@ -171,7 +171,7 @@ describe('Test video editor API validator', function () { | |||
171 | }) | 171 | }) |
172 | 172 | ||
173 | it('Should fail with too many tasks', async function () { | 173 | it('Should fail with too many tasks', async function () { |
174 | const tasks: VideoEditorTask[] = [] | 174 | const tasks: VideoStudioTask[] = [] |
175 | 175 | ||
176 | for (let i = 0; i < 110; i++) { | 176 | for (let i = 0; i < 110; i++) { |
177 | tasks.push({ | 177 | tasks.push({ |
@@ -194,7 +194,7 @@ describe('Test video editor API validator', function () { | |||
194 | 194 | ||
195 | await command.createEditionTasks({ | 195 | await command.createEditionTasks({ |
196 | videoId: videoUUID, | 196 | videoId: videoUUID, |
197 | tasks: VideoEditorCommand.getComplexTask(), | 197 | tasks: VideoStudioCommand.getComplexTask(), |
198 | expectedStatus: HttpStatusCode.NO_CONTENT_204 | 198 | expectedStatus: HttpStatusCode.NO_CONTENT_204 |
199 | }) | 199 | }) |
200 | }) | 200 | }) |
@@ -204,7 +204,7 @@ describe('Test video editor API validator', function () { | |||
204 | 204 | ||
205 | await command.createEditionTasks({ | 205 | await command.createEditionTasks({ |
206 | videoId: videoUUID, | 206 | videoId: videoUUID, |
207 | tasks: VideoEditorCommand.getComplexTask(), | 207 | tasks: VideoStudioCommand.getComplexTask(), |
208 | expectedStatus: HttpStatusCode.CONFLICT_409 | 208 | expectedStatus: HttpStatusCode.CONFLICT_409 |
209 | }) | 209 | }) |
210 | 210 | ||
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' |
17 | import { wait } from '@shared/core-utils' | 17 | import { wait } from '@shared/core-utils' |
18 | import { buildUUID } from '@shared/extra-utils' | 18 | import { buildUUID } from '@shared/extra-utils' |
19 | import { UserNotification, UserNotificationType, VideoEditorTask, VideoPrivacy } from '@shared/models' | 19 | import { UserNotification, UserNotificationType, VideoStudioTask, VideoPrivacy } from '@shared/models' |
20 | import { cleanupTests, PeerTubeServer, waitJobs } from '@shared/server-commands' | 20 | import { cleanupTests, PeerTubeServer, waitJobs } from '@shared/server-commands' |
21 | 21 | ||
22 | const expect = chai.expect | 22 | const 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 | ||
diff --git a/server/tests/api/server/config.ts b/server/tests/api/server/config.ts index 5028b65e6..f31012a5c 100644 --- a/server/tests/api/server/config.ts +++ b/server/tests/api/server/config.ts | |||
@@ -98,7 +98,7 @@ function checkInitialConfig (server: PeerTubeServer, data: CustomConfig) { | |||
98 | expect(data.live.transcoding.resolutions['1440p']).to.be.false | 98 | expect(data.live.transcoding.resolutions['1440p']).to.be.false |
99 | expect(data.live.transcoding.resolutions['2160p']).to.be.false | 99 | expect(data.live.transcoding.resolutions['2160p']).to.be.false |
100 | 100 | ||
101 | expect(data.videoEditor.enabled).to.be.false | 101 | expect(data.videoStudio.enabled).to.be.false |
102 | 102 | ||
103 | expect(data.import.videos.concurrency).to.equal(2) | 103 | expect(data.import.videos.concurrency).to.equal(2) |
104 | expect(data.import.videos.http.enabled).to.be.true | 104 | expect(data.import.videos.http.enabled).to.be.true |
@@ -201,7 +201,7 @@ function checkUpdatedConfig (data: CustomConfig) { | |||
201 | expect(data.live.transcoding.resolutions['1080p']).to.be.true | 201 | expect(data.live.transcoding.resolutions['1080p']).to.be.true |
202 | expect(data.live.transcoding.resolutions['2160p']).to.be.true | 202 | expect(data.live.transcoding.resolutions['2160p']).to.be.true |
203 | 203 | ||
204 | expect(data.videoEditor.enabled).to.be.true | 204 | expect(data.videoStudio.enabled).to.be.true |
205 | 205 | ||
206 | expect(data.import.videos.concurrency).to.equal(4) | 206 | expect(data.import.videos.concurrency).to.equal(4) |
207 | expect(data.import.videos.http.enabled).to.be.false | 207 | expect(data.import.videos.http.enabled).to.be.false |
@@ -350,7 +350,7 @@ const newCustomConfig: CustomConfig = { | |||
350 | } | 350 | } |
351 | } | 351 | } |
352 | }, | 352 | }, |
353 | videoEditor: { | 353 | videoStudio: { |
354 | enabled: true | 354 | enabled: true |
355 | }, | 355 | }, |
356 | import: { | 356 | import: { |
diff --git a/server/tests/api/transcoding/index.ts b/server/tests/api/transcoding/index.ts index 8a0a1d787..0cc28b4a4 100644 --- a/server/tests/api/transcoding/index.ts +++ b/server/tests/api/transcoding/index.ts | |||
@@ -2,4 +2,4 @@ export * from './audio-only' | |||
2 | export * from './create-transcoding' | 2 | export * from './create-transcoding' |
3 | export * from './hls' | 3 | export * from './hls' |
4 | export * from './transcoder' | 4 | export * from './transcoder' |
5 | export * from './video-editor' | 5 | export * from './video-studio' |
diff --git a/server/tests/api/transcoding/video-editor.ts b/server/tests/api/transcoding/video-studio.ts index f70bd49e6..ac1c0fc7e 100644 --- a/server/tests/api/transcoding/video-editor.ts +++ b/server/tests/api/transcoding/video-studio.ts | |||
@@ -1,7 +1,7 @@ | |||
1 | import { expect } from 'chai' | 1 | import { expect } from 'chai' |
2 | import { expectStartWith, getAllFiles } from '@server/tests/shared' | 2 | import { expectStartWith, getAllFiles } from '@server/tests/shared' |
3 | import { areObjectStorageTestsDisabled } from '@shared/core-utils' | 3 | import { areObjectStorageTestsDisabled } from '@shared/core-utils' |
4 | import { VideoEditorTask } from '@shared/models' | 4 | import { VideoStudioTask } from '@shared/models' |
5 | import { | 5 | import { |
6 | cleanupTests, | 6 | cleanupTests, |
7 | createMultipleServers, | 7 | createMultipleServers, |
@@ -10,11 +10,11 @@ import { | |||
10 | PeerTubeServer, | 10 | PeerTubeServer, |
11 | setAccessTokensToServers, | 11 | setAccessTokensToServers, |
12 | setDefaultVideoChannel, | 12 | setDefaultVideoChannel, |
13 | VideoEditorCommand, | 13 | VideoStudioCommand, |
14 | waitJobs | 14 | waitJobs |
15 | } from '@shared/server-commands' | 15 | } from '@shared/server-commands' |
16 | 16 | ||
17 | describe('Test video editor', function () { | 17 | describe('Test video studio', function () { |
18 | let servers: PeerTubeServer[] = [] | 18 | let servers: PeerTubeServer[] = [] |
19 | let videoUUID: string | 19 | let videoUUID: string |
20 | 20 | ||
@@ -39,8 +39,8 @@ describe('Test video editor', function () { | |||
39 | await waitJobs(servers) | 39 | await waitJobs(servers) |
40 | } | 40 | } |
41 | 41 | ||
42 | async function createTasks (tasks: VideoEditorTask[]) { | 42 | async function createTasks (tasks: VideoStudioTask[]) { |
43 | await servers[0].videoEditor.createEditionTasks({ videoId: videoUUID, tasks }) | 43 | await servers[0].videoStudio.createEditionTasks({ videoId: videoUUID, tasks }) |
44 | await waitJobs(servers) | 44 | await waitJobs(servers) |
45 | } | 45 | } |
46 | 46 | ||
@@ -56,7 +56,7 @@ describe('Test video editor', function () { | |||
56 | 56 | ||
57 | await servers[0].config.enableMinimumTranscoding() | 57 | await servers[0].config.enableMinimumTranscoding() |
58 | 58 | ||
59 | await servers[0].config.enableEditor() | 59 | await servers[0].config.enableStudio() |
60 | }) | 60 | }) |
61 | 61 | ||
62 | describe('Cutting', function () { | 62 | describe('Cutting', function () { |
@@ -276,7 +276,7 @@ describe('Test video editor', function () { | |||
276 | this.timeout(240_000) | 276 | this.timeout(240_000) |
277 | await renewVideo() | 277 | await renewVideo() |
278 | 278 | ||
279 | await createTasks(VideoEditorCommand.getComplexTask()) | 279 | await createTasks(VideoStudioCommand.getComplexTask()) |
280 | 280 | ||
281 | for (const server of servers) { | 281 | for (const server of servers) { |
282 | await checkDuration(server, 9) | 282 | await checkDuration(server, 9) |
@@ -303,7 +303,7 @@ describe('Test video editor', function () { | |||
303 | this.timeout(240_000) | 303 | this.timeout(240_000) |
304 | await renewVideo() | 304 | await renewVideo() |
305 | 305 | ||
306 | await createTasks(VideoEditorCommand.getComplexTask()) | 306 | await createTasks(VideoStudioCommand.getComplexTask()) |
307 | 307 | ||
308 | for (const server of servers) { | 308 | for (const server of servers) { |
309 | const video = await server.videos.get({ id: videoUUID }) | 309 | const video = await server.videos.get({ id: videoUUID }) |
@@ -333,7 +333,7 @@ describe('Test video editor', function () { | |||
333 | const video = await servers[0].videos.get({ id: videoUUID }) | 333 | const video = await servers[0].videos.get({ id: videoUUID }) |
334 | const oldFileUrls = getAllFiles(video).map(f => f.fileUrl) | 334 | const oldFileUrls = getAllFiles(video).map(f => f.fileUrl) |
335 | 335 | ||
336 | await createTasks(VideoEditorCommand.getComplexTask()) | 336 | await createTasks(VideoStudioCommand.getComplexTask()) |
337 | 337 | ||
338 | for (const server of servers) { | 338 | for (const server of servers) { |
339 | const video = await server.videos.get({ id: videoUUID }) | 339 | const video = await server.videos.get({ id: videoUUID }) |
diff --git a/server/tests/shared/notifications.ts b/server/tests/shared/notifications.ts index f1ddbbbf7..2a69a09de 100644 --- a/server/tests/shared/notifications.ts +++ b/server/tests/shared/notifications.ts | |||
@@ -47,7 +47,7 @@ function getAllNotificationsSettings (): UserNotificationSetting { | |||
47 | abuseStateChange: UserNotificationSettingValue.WEB | UserNotificationSettingValue.EMAIL, | 47 | abuseStateChange: UserNotificationSettingValue.WEB | UserNotificationSettingValue.EMAIL, |
48 | autoInstanceFollowing: UserNotificationSettingValue.WEB | UserNotificationSettingValue.EMAIL, | 48 | autoInstanceFollowing: UserNotificationSettingValue.WEB | UserNotificationSettingValue.EMAIL, |
49 | newPeerTubeVersion: UserNotificationSettingValue.WEB | UserNotificationSettingValue.EMAIL, | 49 | newPeerTubeVersion: UserNotificationSettingValue.WEB | UserNotificationSettingValue.EMAIL, |
50 | myVideoEditionFinished: UserNotificationSettingValue.WEB | UserNotificationSettingValue.EMAIL, | 50 | myVideoStudioEditionFinished: UserNotificationSettingValue.WEB | UserNotificationSettingValue.EMAIL, |
51 | newPluginVersion: UserNotificationSettingValue.WEB | UserNotificationSettingValue.EMAIL | 51 | newPluginVersion: UserNotificationSettingValue.WEB | UserNotificationSettingValue.EMAIL |
52 | } | 52 | } |
53 | } | 53 | } |
@@ -110,13 +110,13 @@ async function checkVideoIsPublished (options: CheckerBaseParams & { | |||
110 | await checkNotification({ ...options, notificationChecker, emailNotificationFinder }) | 110 | await checkNotification({ ...options, notificationChecker, emailNotificationFinder }) |
111 | } | 111 | } |
112 | 112 | ||
113 | async function checkVideoEditionIsFinished (options: CheckerBaseParams & { | 113 | async function checkVideoStudioEditionIsFinished (options: CheckerBaseParams & { |
114 | videoName: string | 114 | videoName: string |
115 | shortUUID: string | 115 | shortUUID: string |
116 | checkType: CheckerType | 116 | checkType: CheckerType |
117 | }) { | 117 | }) { |
118 | const { videoName, shortUUID } = options | 118 | const { videoName, shortUUID } = options |
119 | const notificationType = UserNotificationType.MY_VIDEO_EDITION_FINISHED | 119 | const notificationType = UserNotificationType.MY_VIDEO_STUDIO_EDITION_FINISHED |
120 | 120 | ||
121 | function notificationChecker (notification: UserNotification, checkType: CheckerType) { | 121 | function notificationChecker (notification: UserNotification, checkType: CheckerType) { |
122 | if (checkType === 'presence') { | 122 | if (checkType === 'presence') { |
@@ -685,7 +685,7 @@ async function prepareNotificationsTest (serversCount = 3, overrideConfigArg: an | |||
685 | await setDefaultChannelAvatar(servers) | 685 | await setDefaultChannelAvatar(servers) |
686 | await setDefaultAccountAvatar(servers) | 686 | await setDefaultAccountAvatar(servers) |
687 | 687 | ||
688 | await servers[1].config.enableEditor() | 688 | await servers[1].config.enableStudio() |
689 | 689 | ||
690 | if (serversCount > 1) { | 690 | if (serversCount > 1) { |
691 | await doubleFollow(servers[0], servers[1]) | 691 | await doubleFollow(servers[0], servers[1]) |
@@ -756,7 +756,7 @@ export { | |||
756 | checkNewAccountAbuseForModerators, | 756 | checkNewAccountAbuseForModerators, |
757 | checkNewPeerTubeVersion, | 757 | checkNewPeerTubeVersion, |
758 | checkNewPluginVersion, | 758 | checkNewPluginVersion, |
759 | checkVideoEditionIsFinished | 759 | checkVideoStudioEditionIsFinished |
760 | } | 760 | } |
761 | 761 | ||
762 | // --------------------------------------------------------------------------- | 762 | // --------------------------------------------------------------------------- |