Browse Source

Merge pull request #8339 from nocodb/nc-fix/undo-redo-cal-pw

Nc fix/undo redo cal pw
pull/8346/head
Mert E 5 months ago committed by GitHub
parent
commit
e4032bb34a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 8
      tests/playwright/pages/Dashboard/Calendar/CalendarWeekDateTime.ts
  2. 1
      tests/playwright/pages/Dashboard/common/Toolbar/Groupby.ts

8
tests/playwright/pages/Dashboard/Calendar/CalendarWeekDateTime.ts

@ -48,12 +48,18 @@ export class CalendarWeekDateTimePage extends BasePage {
const day = this.get().getByTestId('nc-calendar-week-day').nth(dayIndex); const day = this.get().getByTestId('nc-calendar-week-day').nth(dayIndex);
const hour = day.getByTestId('nc-calendar-week-hour').nth(hourIndex); const hour = day.getByTestId('nc-calendar-week-hour').nth(hourIndex);
await hour.click({
await this.waitForResponse({
uiAction: () =>
hour.click({
force: true, force: true,
position: { position: {
x: -1, x: -1,
y: -1, y: -1,
}, },
}),
requestUrlPathToMatch: '/api/v1/db/data/noco',
httpMethodsToMatch: ['GET'],
}); });
} }
} }

1
tests/playwright/pages/Dashboard/common/Toolbar/Groupby.ts

@ -49,6 +49,7 @@ export class ToolbarGroupByPage extends BasePage {
.locator(`div[label="${title}"]`) .locator(`div[label="${title}"]`)
.last() .last()
.click(); .click();
await this.rootPage.locator('.nc-sort-dir-select').nth(index).waitFor({ state: 'visible' });
await this.rootPage.locator('.nc-sort-dir-select').nth(index).click(); await this.rootPage.locator('.nc-sort-dir-select').nth(index).click();
await this.rootPage await this.rootPage
.locator('.nc-dropdown-sort-dir') .locator('.nc-dropdown-sort-dir')

Loading…
Cancel
Save