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 = {
...style, ...style,
top: `${hourIndex * perHeight - hourIndex + 3}px`, top: `${hourIndex * perHeight - hourIndex + 5}px`,
height: `${perHeight - 4}px`, height: `${perHeight - 7}px`,
} }
recordsToDisplay.push({ recordsToDisplay.push({

4
tests/playwright/pages/Dashboard/Calendar/CalendarWeekDateTime.ts

@ -51,8 +51,8 @@ export class CalendarWeekDateTimePage extends BasePage {
await hour.click({ await hour.click({
force: true, force: true,
position: { position: {
x: 0, x: 1,
y: 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.calendarWeekDateTime.selectHour({ dayIndex: 0, hourIndex: 10 });
await calendar.sideMenu.updateFilter({ filter: 'In selected hours' }); await calendar.sideMenu.updateFilter({ filter: 'In selected hours' });
await calendar.sideMenu.verifySideBarRecords({ records: ['Team Catchup'] }); await calendar.sideMenu.verifySideBarRecords({ records: ['Team Catchup'] });

Loading…
Cancel
Save