From 8fcf14e2a42a24b6e9546e506500114af04ba6ea Mon Sep 17 00:00:00 2001 From: dzonidoo Date: Mon, 29 Apr 2024 23:58:12 +0200 Subject: [PATCH] fix helper function to add field in CP --- e2e/client/playwright/page-object-models/settings.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e2e/client/playwright/page-object-models/settings.ts b/e2e/client/playwright/page-object-models/settings.ts index 650d798572..66855d0b24 100644 --- a/e2e/client/playwright/page-object-models/settings.ts +++ b/e2e/client/playwright/page-object-models/settings.ts @@ -18,7 +18,7 @@ export class Settings { await this.page .locator(s('content-profile-editing-modal')) .getByRole('button', {name: 'Add new field'}).first().click(); - await this.page.locator(s('menu')).getByRole('menuitem', {name: field}).click(); + await this.page.locator(s('tree-menu-popover')).getByRole('button', {name: field}).click(); await this.page.locator(s('item-view-edit', 'gform-input--sdWidth')).selectOption('full'); await this.page.locator(s('item-view-edit')).getByRole('button', {name: 'apply'}).click();