From b5570a7bb441e2ada7ef836824ffb4b5a50c230b Mon Sep 17 00:00:00 2001 From: DarkPhoenix2704 Date: Tue, 20 Feb 2024 07:16:21 +0000 Subject: [PATCH] test: fix drag drop test flakiness --- .../pages/Dashboard/Calendar/CalendarDayDateTime.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/playwright/pages/Dashboard/Calendar/CalendarDayDateTime.ts b/tests/playwright/pages/Dashboard/Calendar/CalendarDayDateTime.ts index 9b1be32a42..ecb3caa231 100644 --- a/tests/playwright/pages/Dashboard/Calendar/CalendarDayDateTime.ts +++ b/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);