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

This commit is contained in:
Ramesh Mane
2025-09-16 08:39:20 +00:00
parent b0eb9d7cda
commit 1e23cddcd5
4 changed files with 6 additions and 3 deletions

View File

@@ -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();

View File

@@ -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

View File

@@ -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,