1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-06 03:50:26 +02:00

Fix client tests

This commit is contained in:
Chocobozzz 2024-10-22 13:52:54 +02:00
parent 54adc6f038
commit ef1732e5b9
No known key found for this signature in database
GPG key ID: 583A612D890159BE
5 changed files with 38 additions and 28 deletions

View file

@ -20,7 +20,10 @@ describe('Test index HTML generation', function () {
let privatePlaylistId: string
let unlistedPlaylistId: string
let instanceDescription: string
let instanceConfig: {
name: string
shortDescription: string
}
before(async function () {
this.timeout(120000);
@ -35,7 +38,8 @@ describe('Test index HTML generation', function () {
passwordProtectedVideoId,
unlistedVideoId,
privatePlaylistId,
unlistedPlaylistId
unlistedPlaylistId,
instanceConfig
} = await prepareClientTests())
})
@ -45,7 +49,7 @@ describe('Test index HTML generation', function () {
const config = await servers[0].config.getConfig()
const res = await makeHTMLRequest(servers[0].url, '/videos/trending')
checkIndexTags(res.text, 'PeerTube', instanceDescription, '', config)
checkIndexTags(res.text, instanceConfig.name, instanceConfig.shortDescription, '', config)
})
it('Should update the customized configuration and have the correct index html tags', async function () {