From e170d907802b2b59151de3fedb8fc44ef4387c9c Mon Sep 17 00:00:00 2001 From: DarkPhoenix2704 Date: Wed, 20 Nov 2024 17:43:14 +0000 Subject: [PATCH] fix: flaky tests --- tests/playwright/pages/Dashboard/Calendar/CalendarMonth.ts | 2 +- tests/playwright/tests/db/views/viewCalendar.spec.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/playwright/pages/Dashboard/Calendar/CalendarMonth.ts b/tests/playwright/pages/Dashboard/Calendar/CalendarMonth.ts index 16dd75f262..8d73597033 100644 --- a/tests/playwright/pages/Dashboard/Calendar/CalendarMonth.ts +++ b/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(); } diff --git a/tests/playwright/tests/db/views/viewCalendar.spec.ts b/tests/playwright/tests/db/views/viewCalendar.spec.ts index ae193566b9..05d00a8484 100644 --- a/tests/playwright/tests/db/views/viewCalendar.spec.ts +++ b/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: {