From ab7082cb102c4803d1d16e348fdc0d29eec89005 Mon Sep 17 00:00:00 2001 From: Wing-Kam Wong Date: Tue, 21 Mar 2023 20:15:53 +0800 Subject: [PATCH] fix(playwright): survey form test --- tests/playwright/pages/Dashboard/SurveyForm/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/playwright/pages/Dashboard/SurveyForm/index.ts b/tests/playwright/pages/Dashboard/SurveyForm/index.ts index e5041872e7..5e1067ecf2 100644 --- a/tests/playwright/pages/Dashboard/SurveyForm/index.ts +++ b/tests/playwright/pages/Dashboard/SurveyForm/index.ts @@ -66,6 +66,7 @@ export class SurveyFormPage extends BasePage { // press enter key await this.get().locator(`[data-testid="nc-survey-form__input-${param.fieldLabel}"] >> input`).press('Enter'); } 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'); await expect(modal).toBeVisible(); await modal.locator('.ant-picker-now-btn').click();