aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tests/api
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-12-28 13:47:17 +0100
committerChocobozzz <chocobozzz@cpy.re>2019-01-09 11:15:15 +0100
commite8d246d5267ea8b6b3114d4bcf4f34fe5f3a5241 (patch)
treec0986e91e6ed466af075ddac3c795894db4d0b85 /server/tests/api
parentcef534ed53e4518fe0acf581bfe880788d42fc36 (diff)
downloadPeerTube-e8d246d5267ea8b6b3114d4bcf4f34fe5f3a5241.tar.gz
PeerTube-e8d246d5267ea8b6b3114d4bcf4f34fe5f3a5241.tar.zst
PeerTube-e8d246d5267ea8b6b3114d4bcf4f34fe5f3a5241.zip
Add notification settings migration
Diffstat (limited to 'server/tests/api')
-rw-r--r--server/tests/api/users/user-notifications.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/server/tests/api/users/user-notifications.ts b/server/tests/api/users/user-notifications.ts
index ea35e6390..09c0479fd 100644
--- a/server/tests/api/users/user-notifications.ts
+++ b/server/tests/api/users/user-notifications.ts
@@ -152,6 +152,8 @@ describe('Test users notifications', function () {
152 const videoName = 'remote video ' + videoNameId 152 const videoName = 'remote video ' + videoNameId
153 153
154 const uuid = await uploadVideoByRemoteAccount(servers, videoNameId) 154 const uuid = await uploadVideoByRemoteAccount(servers, videoNameId)
155 await waitJobs(servers)
156
155 await checkNewVideoFromSubscription(baseParams, videoName, uuid, 'presence') 157 await checkNewVideoFromSubscription(baseParams, videoName, uuid, 'presence')
156 }) 158 })
157 159
@@ -194,6 +196,7 @@ describe('Test users notifications', function () {
194 } 196 }
195 } 197 }
196 const uuid = await uploadVideoByRemoteAccount(servers, videoNameId, data) 198 const uuid = await uploadVideoByRemoteAccount(servers, videoNameId, data)
199 await waitJobs(servers)
197 200
198 await wait(6000) 201 await wait(6000)
199 await checkNewVideoFromSubscription(baseParams, videoName, uuid, 'presence') 202 await checkNewVideoFromSubscription(baseParams, videoName, uuid, 'presence')
@@ -245,6 +248,7 @@ describe('Test users notifications', function () {
245 248
246 const data = { privacy: VideoPrivacy.PRIVATE } 249 const data = { privacy: VideoPrivacy.PRIVATE }
247 const uuid = await uploadVideoByRemoteAccount(servers, videoNameId, data) 250 const uuid = await uploadVideoByRemoteAccount(servers, videoNameId, data)
251 await waitJobs(servers)
248 252
249 await checkNewVideoFromSubscription(baseParams, videoName, uuid, 'absence') 253 await checkNewVideoFromSubscription(baseParams, videoName, uuid, 'absence')
250 254
@@ -276,6 +280,7 @@ describe('Test users notifications', function () {
276 280
277 const data = { privacy: VideoPrivacy.PRIVATE } 281 const data = { privacy: VideoPrivacy.PRIVATE }
278 const uuid = await uploadVideoByRemoteAccount(servers, videoNameId, data) 282 const uuid = await uploadVideoByRemoteAccount(servers, videoNameId, data)
283 await waitJobs(servers)
279 284
280 await updateVideo(servers[1].url, servers[1].accessToken, uuid, { privacy: VideoPrivacy.UNLISTED }) 285 await updateVideo(servers[1].url, servers[1].accessToken, uuid, { privacy: VideoPrivacy.UNLISTED })
281 286