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