Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

test(pw): new german date formats test fail issue

Ramesh Mane1e23cddcd531
diff --git a/packages/nc-gui/components/smartsheet/column/DateTimeOptions.vue b/packages/nc-gui/components/smartsheet/column/DateTimeOptions.vue
index c7217d16d5..96f1c2b184 100644
--- a/packages/nc-gui/components/smartsheet/column/DateTimeOptions.vue
+++ b/packages/nc-gui/components/smartsheet/column/DateTimeOptions.vue
@@ -66,6 +66,7 @@ const useSameTimezoneForAll = computed({
class="nc-date-select"
dropdown-class-name="nc-dropdown-date-format"
:disabled="isSystem"
+ show-search
>
<template #suffixIcon>
<GeneralIcon icon="arrowDown" class="text-gray-700" />
diff --git a/tests/playwright/pages/Dashboard/Details/FieldsPage.ts b/tests/playwright/pages/Dashboard/Details/FieldsPage.ts
index 0cf06b94ba..965c0a85f8 100644
--- a/tests/playwright/pages/Dashboard/Details/FieldsPage.ts
+++ b/tests/playwright/pages/Dashboard/Details/FieldsPage.ts
@@ -141,12 +141,13 @@ export class FieldsPage extends BasePage {
break;
case 'Date':
await this.addOrEditColumn.locator('.nc-date-select').click();
- await this.rootPage.locator('.nc-date-select').pressSequentially(dateFormat);
+ await this.addOrEditColumn.locator('.nc-date-select').pressSequentially(dateFormat);
await this.rootPage.locator('.ant-select-item').locator(`text="${dateFormat}"`).click();
break;
case 'DateTime':
// Date Format
await this.addOrEditColumn.locator('.nc-date-select').click();
+ await this.addOrEditColumn.locator('.nc-date-select').pressSequentially(dateFormat);
await this.rootPage.locator('.ant-select-item').locator(`text="${dateFormat}"`).click();
// Time Format
await this.addOrEditColumn.locator('.nc-time-select').click();
diff --git a/tests/playwright/pages/Dashboard/Grid/Column/index.ts b/tests/playwright/pages/Dashboard/Grid/Column/index.ts
index 320e8a1bfe..bf89c108c1 100644
--- a/tests/playwright/pages/Dashboard/Grid/Column/index.ts
+++ b/tests/playwright/pages/Dashboard/Grid/Column/index.ts
@@ -426,6 +426,7 @@ export class ColumnPageObject extends BasePage {
case 'DateTime':
// Date Format
await this.get().locator('.nc-date-select').click();
+ await this.get().locator('.nc-date-select').pressSequentially(dateFormat);
await this.rootPage.locator('.ant-select-item').locator(`text="${dateFormat}"`).click();
// allow UI to update
diff --git a/tests/playwright/tests/db/columns/columnDateTime.spec.ts b/tests/playwright/tests/db/columns/columnDateTime.spec.ts
index b69bf0ddb5..4b72a812cf 100644
--- a/tests/playwright/tests/db/columns/columnDateTime.spec.ts
+++ b/tests/playwright/tests/db/columns/columnDateTime.spec.ts
@@ -59,7 +59,7 @@ const dateTimeData = [
{
dateFormat: 'DD.MM.YYYY',
timeFormat: 'HH:mm:ss',
- date: '2022.12.26',
+ date: '2022-12-26',
hour: 2,
minute: 30,
second: 40,
@@ -68,7 +68,7 @@ const dateTimeData = [
{
dateFormat: 'DD.MM.YY',
timeFormat: 'HH:mm:ss',
- date: '2022.12.26',
+ date: '2022-12-26',
hour: 2,
minute: 30,
second: 40,