From fb62ebb6601fdd45d98723972e09d60b89f7a94b Mon Sep 17 00:00:00 2001 From: musharaf-nocodb Date: Fri, 8 Dec 2023 16:06:14 +0530 Subject: [PATCH] fix : date test-case --- tests/playwright/pages/Dashboard/Grid/Column/index.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/playwright/pages/Dashboard/Grid/Column/index.ts b/tests/playwright/pages/Dashboard/Grid/Column/index.ts index 4cfc89506f..29f4c08fe1 100644 --- a/tests/playwright/pages/Dashboard/Grid/Column/index.ts +++ b/tests/playwright/pages/Dashboard/Grid/Column/index.ts @@ -306,6 +306,11 @@ export class ColumnPageObject extends BasePage { }) .click(); break; + case 'Date': + // Date Format + await this.get().locator('.nc-date-select').click(); + await this.rootPage.locator('.ant-select-item').locator(`[data-testid="nc-${dateFormat}"]`).click(); + break; case 'DateTime': // Date Format await this.get().locator('.nc-date-select').click(); @@ -314,11 +319,6 @@ export class ColumnPageObject extends BasePage { await this.get().locator('.nc-time-select').click(); await this.rootPage.locator('.ant-select-item').locator(`[data-testid="nc-time-${timeFormat}"]`).click(); break; - case 'Date': - // Date Format - await this.get().locator('.nc-date-select').click(); - await this.rootPage.locator('.ant-select-item').locator(`[data-testid="nc-${dateFormat}"]`).click(); - break; default: break; }