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:
parent
54adc6f038
commit
ef1732e5b9
5 changed files with 38 additions and 28 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue