Browse Source

test: fix drag drop test flakiness

pull/7611/head
DarkPhoenix2704 8 months ago
parent
commit
b5570a7bb4
  1. 8
      tests/playwright/pages/Dashboard/Calendar/CalendarDayDateTime.ts

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

@ -26,14 +26,12 @@ export class CalendarDayDateTimePage extends BasePage {
await recordCard.scrollIntoViewIfNeeded();
await recordCard.hover();
await this.rootPage.mouse.down();
await this.rootPage.waitForTimeout(500);
await toDay.scrollIntoViewIfNeeded();
// Bit Flaky
await this.rootPage.waitForTimeout(500);
await this.rootPage.mouse.move(cord.x + cord.width / 2, cord.y + cord.height / 2);
await this.rootPage.mouse.move(cord.x + cord.width / 2, cord.y + cord.height / 2, {
steps: 10,
});
// Bit Flaky
await this.rootPage.waitForTimeout(500);

Loading…
Cancel
Save