ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix E2E tests
Chocobozzz3ec535f72be4
diff --git a/client/e2e/src/po/video-upload.po.ts b/client/e2e/src/po/video-upload.po.tsindex 942025b6b2..ad2acee7fb 100644--- a/client/e2e/src/po/video-upload.po.ts+++ b/client/e2e/src/po/video-upload.po.ts@@ -26,7 +26,12 @@ export class VideoUploadPage {await elem.sendKeys(fileToUpload)// Wait for the upload to finish- await browser.wait(browser.ExpectedConditions.elementToBeClickable(this.getSecondStepSubmitButton()))+ await browser.wait(async () => {+ const actionButton = this.getSecondStepSubmitButton().element(by.css('.action-button'))++ const klass = await actionButton.getAttribute('class')+ return !klass.includes('disabled')+ })}async validSecondUploadStep (videoName: string) {diff --git a/server/middlewares/async.ts b/server/middlewares/async.tsindex 0faa4fb8c0..3d6e388096 100644--- a/server/middlewares/async.ts+++ b/server/middlewares/async.ts@@ -3,7 +3,6 @@ import { NextFunction, Request, RequestHandler, Response } from 'express'import { ValidationChain } from 'express-validator'import { ExpressPromiseHandler } from '@server/types/express'import { retryTransactionWrapper } from '../helpers/database-utils'-import { HttpMethod, HttpStatusCode } from '@shared/core-utils'// Syntactic sugar to avoid try/catch in express controllers// Thanks: https://medium.com/@Abazhenov/using-async-await-in-express-with-node-8-b8af872c0016diff --git a/server/tests/api/server/follow-constraints.ts b/server/tests/api/server/follow-constraints.tsindex 0846b04f41..8a91fbba30 100644--- a/server/tests/api/server/follow-constraints.ts+++ b/server/tests/api/server/follow-constraints.ts@@ -28,7 +28,7 @@ describe('Test follow constraints', function () {let userAccessToken: stringbefore(async function () {- this.timeout(60000)+ this.timeout(90000)servers = await flushAndRunMultipleServers(2)