diff --git a/eform-client/e2e/Page objects/BackendConfiguration/BackendConfigurationAreaRules.page.ts b/eform-client/e2e/Page objects/BackendConfiguration/BackendConfigurationAreaRules.page.ts index 7f6967ce..da76582f 100644 --- a/eform-client/e2e/Page objects/BackendConfiguration/BackendConfigurationAreaRules.page.ts +++ b/eform-client/e2e/Page objects/BackendConfiguration/BackendConfigurationAreaRules.page.ts @@ -167,6 +167,14 @@ export class BackendConfigurationAreaRulesPage extends Page { } public async updateEntityList() { + // Open the action menu first (required for type 3 area rules where the button is in a dropdown) + await browser.pause(1000); + const actionMenu = await $$('#actionMenu')[0]; + await actionMenu.waitForDisplayed({ timeout: 40000 }); + await actionMenu.waitForClickable({ timeout: 40000 }); + await actionMenu.click(); + await browser.pause(1000); + const ele = await $(`.updateEntityList`); await ele.waitForDisplayed({ timeout: 40000 }); await ele.waitForClickable({ timeout: 40000 }); @@ -333,7 +341,9 @@ export class BackendConfigurationAreaRulesPage extends Page { } else { await (await this.entityListSaveBtn()).click(); } - await (await this.updateEntityList()).waitForClickable({ timeout: 40000 }) + // Wait for the action menu button to be clickable again (instead of opening the menu) + const actionMenu = await $$('#actionMenu')[0]; + await actionMenu.waitForClickable({ timeout: 40000 }); } public async editEntityItem(index: number, newName: string, clickCancel = false) {