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