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

Fix tests

This commit is contained in:
Chocobozzz 2024-11-23 15:09:37 +01:00
parent d2adf1faff
commit 8a0269f4eb
No known key found for this signature in database
GPG key ID: 583A612D890159BE
4 changed files with 6 additions and 6 deletions

View file

@ -47,7 +47,7 @@ describe('Test index HTML generation', function () {
it('Should have valid index html tags (title, description...)', async function () {
const config = await servers[0].config.getConfig()
const res = await makeHTMLRequest(servers[0].url, '/videos/trending')
const res = await makeHTMLRequest(servers[0].url, '/videos/browse')
checkIndexTags(res.text, instanceConfig.name, instanceConfig.shortDescription, '', config)
})
@ -71,14 +71,14 @@ describe('Test index HTML generation', function () {
})
const config = await servers[0].config.getConfig()
const res = await makeHTMLRequest(servers[0].url, '/videos/trending')
const res = await makeHTMLRequest(servers[0].url, '/videos/browse')
checkIndexTags(res.text, 'PeerTube updated', 'my short description', 'body { background-color: red; }', config)
})
it('Should have valid index html updated tags (title, description...)', async function () {
const config = await servers[0].config.getConfig()
const res = await makeHTMLRequest(servers[0].url, '/videos/trending')
const res = await makeHTMLRequest(servers[0].url, '/videos/browse')
checkIndexTags(res.text, 'PeerTube updated', 'my short description', 'body { background-color: red; }', config)
})