From 463a8823a85cf1250ac488cedaf6578e6f384db4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 6 Nov 2025 13:39:55 +0000 Subject: [PATCH 1/2] Initial plan From cba8e9df83bb0b5ce494774181df40c0ee35a6f0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 6 Nov 2025 13:48:07 +0000 Subject: [PATCH 2/2] Fix updateEntityList to open action menu before accessing button Co-authored-by: renemadsen <76994+renemadsen@users.noreply.github.com> --- .../BackendConfigurationAreaRules.page.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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) {