From 450de91e22ba1388e14e12ada875c94e0c38f5d3 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 24 Nov 2021 10:49:12 +0100 Subject: Fix E2E tests --- server/lib/client-html.ts | 5 +++++ server/tests/cli/create-import-video-file-job.ts | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'server') diff --git a/server/lib/client-html.ts b/server/lib/client-html.ts index 84b4ca97d..84eb33348 100644 --- a/server/lib/client-html.ts +++ b/server/lib/client-html.ts @@ -335,6 +335,11 @@ class ClientHtml { lang = req.acceptsLanguages(POSSIBLE_LOCALES) || getDefaultLocale() } + logger.debug( + 'Serving %s HTML language', buildFileLocale(lang), + { cookie: req.cookies?.clientLanguage, paramLang, acceptLanguage: req.headers['accept-language'] } + ) + return join(__dirname, '../../../client/dist/' + buildFileLocale(lang) + '/index.html') } diff --git a/server/tests/cli/create-import-video-file-job.ts b/server/tests/cli/create-import-video-file-job.ts index 17ed67b05..c06b9550c 100644 --- a/server/tests/cli/create-import-video-file-job.ts +++ b/server/tests/cli/create-import-video-file-job.ts @@ -7,7 +7,6 @@ import { cleanupTests, createMultipleServers, doubleFollow, - expectNoFailedTranscodingJob, expectStartWith, makeRawRequest, ObjectStorageCommand, -- cgit v1.2.3