X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Ftests%2Fclient.ts;h=9a20c2a10361b29b52264b423d30e7993df04c57;hb=47d883de2efbc2e8b5f6f94ae18c15224cbe982b;hp=0cb4603276f57a8cc55eb87bf7cac43f7731b870;hpb=e0faa8ad6e18ce6248ef1ec93a59dab5b05be468;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/tests/client.ts b/server/tests/client.ts index 0cb460327..9a20c2a10 100644 --- a/server/tests/client.ts +++ b/server/tests/client.ts @@ -1,6 +1,6 @@ /* eslint-disable @typescript-eslint/no-unused-expressions,@typescript-eslint/require-await */ -import * as chai from 'chai' +import { expect } from 'chai' import { omit } from '@shared/core-utils' import { Account, @@ -23,8 +23,6 @@ import { waitJobs } from '../../shared/server-commands' -const expect = chai.expect - function checkIndexTags (html: string, title: string, description: string, css: string, config: ServerConfig) { expect(html).to.contain('' + title + '') expect(html).to.contain('') @@ -136,11 +134,9 @@ describe('Test a client controllers', function () { expectedStatus: HttpStatusCode.OK_200 }) - const port = servers[0].port - - const expectedLink = '` + const expectedLink = `` expect(res.text).to.contain(expectedLink) } @@ -157,10 +153,8 @@ describe('Test a client controllers', function () { expectedStatus: HttpStatusCode.OK_200 }) - const port = servers[0].port - - const expectedLink = '` expect(res.text).to.contain(expectedLink) @@ -231,6 +225,14 @@ describe('Test a client controllers', function () { } }) + it('Should have valid Open Graph tags on the watch page with thread id Angular param', async function () { + for (const path of watchVideoBasePaths) { + for (const id of videoIds) { + await watchVideoPageTest(path + id + ';threadId=1') + } + } + }) + it('Should have valid Open Graph tags on the watch playlist page', async function () { for (const path of watchPlaylistBasePaths) { for (const id of playlistIds) {