diff options
-rw-r--r-- | client/e2e/src/po/my-account.po.ts | 13 | ||||
-rw-r--r-- | client/e2e/src/utils/server.ts | 3 |
2 files changed, 13 insertions, 3 deletions
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 { | |||
54 | 54 | ||
55 | await container.$('.dropdown-toggle').click() | 55 | await container.$('.dropdown-toggle').click() |
56 | 56 | ||
57 | const dropdownMenu = () => container.$$('.dropdown-menu .dropdown-item')[1] | 57 | const deleteItem = () => { |
58 | return $$('.dropdown-menu .dropdown-item').find<WebdriverIO.Element>(async v => { | ||
59 | const text = await v.getText() | ||
58 | 60 | ||
59 | await dropdownMenu().waitForDisplayed() | 61 | return text.includes('Delete') |
60 | return dropdownMenu().click() | 62 | }) |
63 | } | ||
64 | |||
65 | await (await deleteItem()).waitForClickable() | ||
66 | |||
67 | return (await deleteItem()).click() | ||
61 | } | 68 | } |
62 | 69 | ||
63 | validRemove () { | 70 | 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 = {}) { | |||
24 | transcoding: { | 24 | transcoding: { |
25 | enabled: false | 25 | enabled: false |
26 | }, | 26 | }, |
27 | video_studio: { | ||
28 | enabled: false | ||
29 | }, | ||
27 | 30 | ||
28 | ...config | 31 | ...config |
29 | }) | 32 | }) |