From a6241926d23c80fe4c830f069e82b8a19469ace0 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 20 May 2022 14:18:20 +0200 Subject: Fix local E2E tests --- client/e2e/src/po/my-account.po.ts | 13 ++++++++++--- client/e2e/src/utils/server.ts | 3 +++ 2 files changed, 13 insertions(+), 3 deletions(-) (limited to 'client') diff --git a/client/e2e/src/po/my-account.po.ts b/client/e2e/src/po/my-account.po.ts index 20dafbf06..8d5d878ce 100644 --- a/client/e2e/src/po/my-account.po.ts +++ b/client/e2e/src/po/my-account.po.ts @@ -54,10 +54,17 @@ export class MyAccountPage { await container.$('.dropdown-toggle').click() - const dropdownMenu = () => container.$$('.dropdown-menu .dropdown-item')[1] + const deleteItem = () => { + return $$('.dropdown-menu .dropdown-item').find(async v => { + const text = await v.getText() - await dropdownMenu().waitForDisplayed() - return dropdownMenu().click() + return text.includes('Delete') + }) + } + + await (await deleteItem()).waitForClickable() + + return (await deleteItem()).click() } validRemove () { diff --git a/client/e2e/src/utils/server.ts b/client/e2e/src/utils/server.ts index 7089a5c9c..a0c591630 100644 --- a/client/e2e/src/utils/server.ts +++ b/client/e2e/src/utils/server.ts @@ -24,6 +24,9 @@ function runServer (appInstance: string, config: any = {}) { transcoding: { enabled: false }, + video_studio: { + enabled: false + }, ...config }) -- cgit v1.2.3