Browse Source

test: pw test fails issue

pull/7786/head
Ramesh Mane 7 months ago
parent
commit
979430b0e7
  1. 4
      tests/playwright/pages/Dashboard/Form/index.ts

4
tests/playwright/pages/Dashboard/Form/index.ts

@ -117,7 +117,7 @@ export class FormPage extends BasePage {
} else if (mode === 'hideField') { } else if (mode === 'hideField') {
// in form-v2, hide field will be using right sidebar // in form-v2, hide field will be using right sidebar
await this.formFields 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') .locator('.nc-switch')
.click(); .click();
} }
@ -136,7 +136,7 @@ export class FormPage extends BasePage {
await src.dragTo(dst); await src.dragTo(dst);
} else if (mode === 'clickField') { } else if (mode === 'clickField') {
await this.formFields 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') .locator('.nc-switch')
.click(); .click();
} }

Loading…
Cancel
Save