Browse Source

fix: flaky tests

pull/9831/head
DarkPhoenix2704 2 days ago
parent
commit
e170d90780
  1. 2
      tests/playwright/pages/Dashboard/Calendar/CalendarMonth.ts
  2. 2
      tests/playwright/tests/db/views/viewCalendar.spec.ts

2
tests/playwright/pages/Dashboard/Calendar/CalendarMonth.ts

@ -32,7 +32,7 @@ export class CalendarMonthPage extends BasePage {
await this.rootPage.waitForTimeout(500);
await this.rootPage.mouse.move(cord.x + cord.width / 2, cord.y + cord.height / 2, { steps: 10 });
await this.rootPage.mouse.move(cord.x + cord.width, cord.y + cord.height, { steps: 10 });
await this.rootPage.mouse.up();
}

2
tests/playwright/tests/db/views/viewCalendar.spec.ts

@ -335,6 +335,8 @@ test.describe('Calendar View', () => {
action: 'prev',
});
await calendar.dashboard.rootPage.waitForTimeout(1000);
await calendar.calendarWeekDateTime.dragAndDrop({
record: 'Team Catchup',
to: {

Loading…
Cancel
Save