ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix E2E tests
Chocobozzz450de91e22ba
diff --git a/client/e2e/src/po/my-account.ts b/client/e2e/src/po/my-account.tsindex 8b5e79b5ee..b51614fd99 100644--- a/client/e2e/src/po/my-account.ts+++ b/client/e2e/src/po/my-account.ts@@ -39,7 +39,7 @@ export class MyAccountPage {await container.$('.dropdown-toggle').click()- const dropdownMenu = () => container.$('.dropdown-menu .dropdown-item:nth-child(2)')+ const dropdownMenu = () => container.$$('.dropdown-menu .dropdown-item')[1]await dropdownMenu().waitForDisplayed()return dropdownMenu().click()diff --git a/client/e2e/wdio.local-test.conf.ts b/client/e2e/wdio.local-test.conf.tsindex 6ae4263221..32e6d340ce 100644--- a/client/e2e/wdio.local-test.conf.ts+++ b/client/e2e/wdio.local-test.conf.ts@@ -4,6 +4,9 @@ const prefs = {'intl.accept_languages': 'en'}+// Chrome headless does not support prefs+process.env.LANG = 'en'+module.exports = {config: {...mainConfig,@@ -18,6 +21,7 @@ module.exports = {browserName: 'chrome',acceptInsecureCerts: true,'goog:chromeOptions': {+ args: [ '--headless', '--disable-gpu', '--window-size=1280,1024' ],prefs}}diff --git a/client/e2e/wdio.local.conf.ts b/client/e2e/wdio.local.conf.tsindex a4c517f5e3..43b820ca6c 100644--- a/client/e2e/wdio.local.conf.ts+++ b/client/e2e/wdio.local.conf.ts@@ -3,6 +3,7 @@ import { config as mainConfig } from './wdio.main.conf'const prefs = {'intl.accept_languages': 'en'}+process.env.LANG = 'en'module.exports = {config: {@@ -16,6 +17,7 @@ module.exports = {{browserName: 'chrome','goog:chromeOptions': {+ args: [ '--headless', '--disable-gpu', '--window-size=1280,1024' ],prefs}},@@ -23,6 +25,8 @@ module.exports = {browserName: 'firefox','moz:firefoxOptions': {binary: '/usr/bin/firefox-developer-edition',+ args: [ '--headless', '--window-size=1280,1024' ],+prefs}}diff --git a/server/lib/client-html.ts b/server/lib/client-html.tsindex 84b4ca97de..84eb333481 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.tsindex 17ed67b059..c06b9550cb 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,diff --git a/support/doc/development/release.md b/support/doc/development/release.mdindex deabe56870..bb055b7b7d 100644--- a/support/doc/development/release.md+++ b/support/doc/development/release.md@@ -13,7 +13,7 @@ NODE_APP_INSTANCE=6 NODE_ENV=test npm run start* Run `rm -rf node_modules && rm -rf client/node_modules && yarn install --pure-lockfile && npm run build` to see if all the supported languages compile correctly* Update https://peertube2.cpy.re and check it works correctly* Check CI tests are green- * Run BrowserStack and local E2E tests+ * Run BrowserStack **and** local E2E tests* Release: `GITHUB_TOKEN=my_token npm run release -- 1.x.x`* Create a dedicated branch: `git checkout -b release/1.x.x && git push origin release/1.x.x`* Check the release is okay: https://github.com/Chocobozzz/PeerTube/releases