|
|
@ -116,10 +116,7 @@ export class FormPage extends BasePage { |
|
|
|
await src.dragTo(dst); |
|
|
|
await src.dragTo(dst); |
|
|
|
} 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-${field}"]`).locator('.nc-switch').click(); |
|
|
|
.locator(`[data-testid="nc-form-field-item-${window.CSS.escape(field)}"]`) |
|
|
|
|
|
|
|
.locator('.nc-switch') |
|
|
|
|
|
|
|
.click(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -135,10 +132,7 @@ export class FormPage extends BasePage { |
|
|
|
await src.dragTo(dst, { trial: true }); |
|
|
|
await src.dragTo(dst, { trial: true }); |
|
|
|
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-${field}"]`).locator('.nc-switch').click(); |
|
|
|
.locator(`[data-testid="nc-form-field-item-${window.CSS.escape(field)}"]`) |
|
|
|
|
|
|
|
.locator('.nc-switch') |
|
|
|
|
|
|
|
.click(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|