aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/e2e/src/po/my-account.po.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/e2e/src/po/my-account.po.ts')
-rw-r--r--client/e2e/src/po/my-account.po.ts13
1 files changed, 10 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 () {