From 979430b0e7d289b3974fd90a340be0a4a95fc849 Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Sat, 9 Mar 2024 11:51:13 +0000 Subject: [PATCH] test: pw test fails issue --- tests/playwright/pages/Dashboard/Form/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/playwright/pages/Dashboard/Form/index.ts b/tests/playwright/pages/Dashboard/Form/index.ts index bba939f9e7..ba46e39625 100644 --- a/tests/playwright/pages/Dashboard/Form/index.ts +++ b/tests/playwright/pages/Dashboard/Form/index.ts @@ -117,7 +117,7 @@ export class FormPage extends BasePage { } else if (mode === 'hideField') { // in form-v2, hide field will be using right sidebar await this.formFields - .locator(`[data-testid="nc-form-field-item-${CSS.escape(field)}"]`) + .locator(`[data-testid="nc-form-field-item-${window.CSS.escape(field)}"]`) .locator('.nc-switch') .click(); } @@ -136,7 +136,7 @@ export class FormPage extends BasePage { await src.dragTo(dst); } else if (mode === 'clickField') { await this.formFields - .locator(`[data-testid="nc-form-field-item-${CSS.escape(field)}"]`) + .locator(`[data-testid="nc-form-field-item-${window.CSS.escape(field)}"]`) .locator('.nc-switch') .click(); }