Browse Source

fix: date time edit modal handling

pull/8380/head
Raju Udava 2 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 // Time Format
await this.get().locator('.nc-time-select').click(); await this.get().locator('.nc-time-select').click();
await this.rootPage.locator('.ant-select-item').locator(`text="${timeFormat}"`).click(); await this.rootPage.locator('.ant-select-item').locator(`text="${timeFormat}"`).click();
// allow UI to update
await this.rootPage.waitForTimeout(500);
break; break;
case 'Date': case 'Date':
await this.get().locator('.nc-date-select').click(); 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(); await this.rootPage.locator('.ant-select-item').locator(`text="${dateFormat}"`).click();
// allow UI to update
await this.rootPage.waitForTimeout(500);
break; break;
default: default:
break; break;

Loading…
Cancel
Save