Browse Source

Merge pull request #4742 from nocodb/test/date-time-column-fix

test: date picker configuration
pull/4743/head
Raju Udava 2 years ago committed by GitHub
parent
commit
143fca7c64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 13
      tests/playwright/pages/Dashboard/common/Cell/DateTimeCell.ts

13
tests/playwright/pages/Dashboard/common/Cell/DateTimeCell.ts

@ -33,7 +33,18 @@ export class DateTimeCellPageObject extends BasePage {
date: string; date: string;
}) { }) {
// title date format needs to be YYYY-MM-DD // title date format needs to be YYYY-MM-DD
await this.rootPage.locator(`td[title="${date}"]`).click(); const [year, month, day] = date.split('-');
// configure year
await this.rootPage.locator('.ant-picker-year-btn').click();
await this.rootPage.locator(`td[title="${year}"]`).click();
// configure month
await this.rootPage.locator('.ant-picker-month-btn').click();
await this.rootPage.locator(`td[title="${year}-${month}"]`).click();
// configure day
await this.rootPage.locator(`td[title="${year}-${month}-${day}"]`).click();
} }
async selectTime({ async selectTime({

Loading…
Cancel
Save