From 6e91d79969b851919b114eba69bf3ad7b5b39c7e Mon Sep 17 00:00:00 2001 From: Maria Lorena Rodriguez Viruel Date: Fri, 29 Nov 2024 13:57:58 -0300 Subject: [PATCH] restore openMoreOptionsMenu to original --- tests/page-objects/default/common/common.wdio.page.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/tests/page-objects/default/common/common.wdio.page.js b/tests/page-objects/default/common/common.wdio.page.js index b8d0719ffd..23d6f8bcf3 100644 --- a/tests/page-objects/default/common/common.wdio.page.js +++ b/tests/page-objects/default/common/common.wdio.page.js @@ -87,14 +87,8 @@ const closeHamburgerMenu = async () => { }; const openMoreOptionsMenu = async () => { - const moreOptionsMenu = await kebabMenuSelectors.moreOptionsMenu(); - - if (await moreOptionsMenu.isExisting()) { - if (await moreOptionsMenu.isClickable()) { - await moreOptionsMenu.waitForClickable(); - await moreOptionsMenu.click(); - } - } + await (await kebabMenuSelectors.moreOptionsMenu()).waitForClickable(); + await (await kebabMenuSelectors.moreOptionsMenu()).click(); }; const performMenuAction = async (actionSelector) => {