mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-25 06:36:34 +00:00
test(pw): new german date formats test fail issue
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user