Browse Source

fix: date time edit modal handling

pull/8380/head
Raju Udava 6 months ago
parent
commit
2efb1dbcae
  1. 10
      tests/playwright/pages/Dashboard/Grid/Column/index.ts

10
tests/playwright/pages/Dashboard/Grid/Column/index.ts

@ -328,11 +328,19 @@ export class ColumnPageObject extends BasePage {
// Time Format
await this.get().locator('.nc-time-select').click();
await this.rootPage.locator('.ant-select-item').locator(`text="${timeFormat}"`).click();
// allow UI to update
await this.rootPage.waitForTimeout(500);
break;
case 'Date':
await this.get().locator('.nc-date-select').click();
await this.rootPage.locator('.nc-date-select').pressSequentially(dateFormat);
await this.rootPage.locator('.nc-date-select').pressSequentially(dateFormat, { delay: 100 });
await this.rootPage.locator('.ant-select-item').locator(`text="${dateFormat}"`).click();
// allow UI to update
await this.rootPage.waitForTimeout(500);
break;
default:
break;

Loading…
Cancel
Save