Skip to content

Commit

Permalink
restore openMoreOptionsMenu to original
Browse files Browse the repository at this point in the history
  • Loading branch information
Maria Lorena Rodriguez Viruel committed Nov 29, 2024
1 parent 4c6c644 commit 6e91d79
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tests/page-objects/default/common/common.wdio.page.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 6e91d79

Please sign in to comment.