Browse Source

test: fix tests

pull/7611/head
DarkPhoenix2704 9 months ago
parent
commit
e75cbc5d30
  1. 4
      packages/nc-gui/components/smartsheet/calendar/WeekView/DateTimeField.vue
  2. 4
      tests/playwright/pages/Dashboard/Calendar/CalendarWeekDateTime.ts
  3. 2
      tests/playwright/tests/db/views/viewCalendar.spec.ts

4
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({

4
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,
},
});
}

2
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'] });

Loading…
Cancel
Save