From e75cbc5d3009f5b44d9a026362ce32e0026fbbaa Mon Sep 17 00:00:00 2001 From: DarkPhoenix2704 Date: Tue, 20 Feb 2024 07:16:22 +0000 Subject: [PATCH] test: fix tests --- .../components/smartsheet/calendar/WeekView/DateTimeField.vue | 4 ++-- .../pages/Dashboard/Calendar/CalendarWeekDateTime.ts | 4 ++-- tests/playwright/tests/db/views/viewCalendar.spec.ts | 2 -- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/nc-gui/components/smartsheet/calendar/WeekView/DateTimeField.vue b/packages/nc-gui/components/smartsheet/calendar/WeekView/DateTimeField.vue index 8719673e3b..d6377dbc69 100644 --- a/packages/nc-gui/components/smartsheet/calendar/WeekView/DateTimeField.vue +++ b/packages/nc-gui/components/smartsheet/calendar/WeekView/DateTimeField.vue @@ -166,8 +166,8 @@ const recordsAcrossAllRange = computed<{ style = { ...style, - top: `${hourIndex * perHeight - hourIndex + 3}px`, - height: `${perHeight - 4}px`, + top: `${hourIndex * perHeight - hourIndex + 5}px`, + height: `${perHeight - 7}px`, } recordsToDisplay.push({ diff --git a/tests/playwright/pages/Dashboard/Calendar/CalendarWeekDateTime.ts b/tests/playwright/pages/Dashboard/Calendar/CalendarWeekDateTime.ts index 4d4883f241..41566251aa 100644 --- a/tests/playwright/pages/Dashboard/Calendar/CalendarWeekDateTime.ts +++ b/tests/playwright/pages/Dashboard/Calendar/CalendarWeekDateTime.ts @@ -51,8 +51,8 @@ export class CalendarWeekDateTimePage extends BasePage { await hour.click({ force: true, position: { - x: 0, - y: 1, + x: 1, + y: 0, }, }); } diff --git a/tests/playwright/tests/db/views/viewCalendar.spec.ts b/tests/playwright/tests/db/views/viewCalendar.spec.ts index 4a60dd9529..be0d90420c 100644 --- a/tests/playwright/tests/db/views/viewCalendar.spec.ts +++ b/tests/playwright/tests/db/views/viewCalendar.spec.ts @@ -277,8 +277,6 @@ test.describe('Calendar View', () => { await calendar.calendarWeekDateTime.selectHour({ dayIndex: 0, hourIndex: 10 }); - await calendar.calendarWeekDateTime.selectHour({ dayIndex: 0, hourIndex: 10 }); - await calendar.sideMenu.updateFilter({ filter: 'In selected hours' }); await calendar.sideMenu.verifySideBarRecords({ records: ['Team Catchup'] });