From 2efb1dbcae5f95573d0433329d5375ce70ed07a9 Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Fri, 3 May 2024 06:45:41 +0000 Subject: [PATCH] fix: date time edit modal handling --- tests/playwright/pages/Dashboard/Grid/Column/index.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/playwright/pages/Dashboard/Grid/Column/index.ts b/tests/playwright/pages/Dashboard/Grid/Column/index.ts index 8371479e9b..da7fe10b91 100644 --- a/tests/playwright/pages/Dashboard/Grid/Column/index.ts +++ b/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;