mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 10:49:28 +02:00
Add ability to search by host in server
This commit is contained in:
parent
5d0095fde1
commit
29837f8885
18 changed files with 513 additions and 354 deletions
|
@ -111,10 +111,10 @@ describe('Test notifications API', function () {
|
|||
expect(info.notificationSettings.newVideoFromSubscription).to.equal(UserNotificationSettingValue.NONE)
|
||||
}
|
||||
|
||||
const { name, uuid } = await server.videos.randomUpload()
|
||||
const { name, shortUUID } = await server.videos.randomUpload()
|
||||
|
||||
const check = { web: true, mail: true }
|
||||
await checkNewVideoFromSubscription({ ...baseParams, check }, name, uuid, 'absence')
|
||||
await checkNewVideoFromSubscription({ ...baseParams, check, videoName: name, shortUUID, checkType: 'absence' })
|
||||
})
|
||||
|
||||
it('Should only have web notifications', async function () {
|
||||
|
@ -130,16 +130,16 @@ describe('Test notifications API', function () {
|
|||
expect(info.notificationSettings.newVideoFromSubscription).to.equal(UserNotificationSettingValue.WEB)
|
||||
}
|
||||
|
||||
const { name, uuid } = await server.videos.randomUpload()
|
||||
const { name, shortUUID } = await server.videos.randomUpload()
|
||||
|
||||
{
|
||||
const check = { mail: true, web: false }
|
||||
await checkNewVideoFromSubscription({ ...baseParams, check }, name, uuid, 'absence')
|
||||
await checkNewVideoFromSubscription({ ...baseParams, check, videoName: name, shortUUID, checkType: 'absence' })
|
||||
}
|
||||
|
||||
{
|
||||
const check = { mail: false, web: true }
|
||||
await checkNewVideoFromSubscription({ ...baseParams, check }, name, uuid, 'presence')
|
||||
await checkNewVideoFromSubscription({ ...baseParams, check, videoName: name, shortUUID, checkType: 'presence' })
|
||||
}
|
||||
})
|
||||
|
||||
|
@ -156,16 +156,16 @@ describe('Test notifications API', function () {
|
|||
expect(info.notificationSettings.newVideoFromSubscription).to.equal(UserNotificationSettingValue.EMAIL)
|
||||
}
|
||||
|
||||
const { name, uuid } = await server.videos.randomUpload()
|
||||
const { name, shortUUID } = await server.videos.randomUpload()
|
||||
|
||||
{
|
||||
const check = { mail: false, web: true }
|
||||
await checkNewVideoFromSubscription({ ...baseParams, check }, name, uuid, 'absence')
|
||||
await checkNewVideoFromSubscription({ ...baseParams, check, videoName: name, shortUUID, checkType: 'absence' })
|
||||
}
|
||||
|
||||
{
|
||||
const check = { mail: true, web: false }
|
||||
await checkNewVideoFromSubscription({ ...baseParams, check }, name, uuid, 'presence')
|
||||
await checkNewVideoFromSubscription({ ...baseParams, check, videoName: name, shortUUID, checkType: 'presence' })
|
||||
}
|
||||
})
|
||||
|
||||
|
@ -187,9 +187,9 @@ describe('Test notifications API', function () {
|
|||
)
|
||||
}
|
||||
|
||||
const { name, uuid } = await server.videos.randomUpload()
|
||||
const { name, shortUUID } = await server.videos.randomUpload()
|
||||
|
||||
await checkNewVideoFromSubscription(baseParams, name, uuid, 'presence')
|
||||
await checkNewVideoFromSubscription({ ...baseParams, videoName: name, shortUUID, checkType: 'presence' })
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue