|
|
@ -66,6 +66,7 @@ export class SurveyFormPage extends BasePage { |
|
|
|
// press enter key
|
|
|
|
// press enter key
|
|
|
|
await this.get().locator(`[data-testid="nc-survey-form__input-${param.fieldLabel}"] >> input`).press('Enter'); |
|
|
|
await this.get().locator(`[data-testid="nc-survey-form__input-${param.fieldLabel}"] >> input`).press('Enter'); |
|
|
|
} else if (param.type === 'DateTime') { |
|
|
|
} else if (param.type === 'DateTime') { |
|
|
|
|
|
|
|
await this.get().locator(`[data-testid="nc-survey-form__input-${param.fieldLabel}"] >> input`).click(); |
|
|
|
const modal = await this.rootPage.locator('.nc-picker-datetime'); |
|
|
|
const modal = await this.rootPage.locator('.nc-picker-datetime'); |
|
|
|
await expect(modal).toBeVisible(); |
|
|
|
await expect(modal).toBeVisible(); |
|
|
|
await modal.locator('.ant-picker-now-btn').click(); |
|
|
|
await modal.locator('.ant-picker-now-btn').click(); |
|
|
|