Browse Source

test: fix undo redo cal timeout

pull/8339/head
Raju Udava 5 months ago
parent
commit
7fae62f0ad
  1. 8
      tests/playwright/pages/Dashboard/Calendar/CalendarWeekDateTime.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 hour = day.getByTestId('nc-calendar-week-hour').nth(hourIndex);
await hour.click({
await this.waitForResponse({
uiAction: () =>
hour.click({
force: true,
position: {
x: -1,
y: -1,
},
}),
requestUrlPathToMatch: '/api/v1/db/data/noco',
httpMethodsToMatch: ['GET'],
});
}
}

Loading…
Cancel
Save