diff --git a/tests/playwright/pages/Dashboard/Form/index.ts b/tests/playwright/pages/Dashboard/Form/index.ts index cef6fcc50b..783d3c1799 100644 --- a/tests/playwright/pages/Dashboard/Form/index.ts +++ b/tests/playwright/pages/Dashboard/Form/index.ts @@ -87,9 +87,7 @@ export class FormPage extends BasePage { } async verifyFormFieldHelpText({ index, helpText }: { index: number; helpText: string }) { - await expect( - this.getFormFields().nth(index).locator('[data-testid="nc-form-input-help-text-label"]') - ).toContainText(helpText); + await expect(this.getFormFields().nth(index).locator('[data-testid="nc-form-help-text"]')).toContainText(helpText); } async verifyFieldsIsEditable({ index }: { index: number }) { @@ -219,8 +217,9 @@ export class FormPage extends BasePage { await this.get() .locator(`.nc-form-drag-${field.replace(' ', '')}`) - .locator('div[data-testid="nc-form-input-label"]') + .locator('[data-testid="nc-form-input-label"]') .click(); + await waitForResponse(() => this.getFormFieldsInputLabel().fill(label)); await waitForResponse(() => this.getFormFieldsInputHelpText().fill(helpText)); if (required) {