Browse Source

fix(playwright): survey form test

pull/5328/head
Wing-Kam Wong 2 years ago
parent
commit
ab7082cb10
  1. 1
      tests/playwright/pages/Dashboard/SurveyForm/index.ts

1
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();

Loading…
Cancel
Save