Browse Source

fix: ci tests

pull/7611/head
DarkPhoenix2704 10 months ago
parent
commit
23728af49b
  1. 2
      packages/nc-gui/components/smartsheet/calendar/WeekView/DateTimeField.vue
  2. 12
      tests/playwright/tests/db/views/viewCalendar.spec.ts

2
packages/nc-gui/components/smartsheet/calendar/WeekView/DateTimeField.vue

@ -779,7 +779,7 @@ const viewMore = (hour: dayjs.Dayjs) => {
<div <div
v-for="(record, rowIndex) in recordsAcrossAllRange.records" v-for="(record, rowIndex) in recordsAcrossAllRange.records"
:key="rowIndex" :key="rowIndex"
:data-testid="`nc-calendar-day-record-${record.row[displayField!.title!]}`" :data-testid="`nc-calendar-week-record-${record.row[displayField!.title!]}`"
:data-unique-id="record.rowMeta!.id" :data-unique-id="record.rowMeta!.id"
:style="record.rowMeta!.style" :style="record.rowMeta!.style"
class="absolute draggable-record w-1/7 group cursor-pointer pointer-events-auto" class="absolute draggable-record w-1/7 group cursor-pointer pointer-events-auto"

12
tests/playwright/tests/db/views/viewCalendar.spec.ts

@ -45,7 +45,15 @@ test.describe('View', () => {
let dashboard: DashboardPage, toolbar: ToolbarPage, topbar: TopbarPage, calendarTopbar: CalendarTopbarPage; let dashboard: DashboardPage, toolbar: ToolbarPage, topbar: TopbarPage, calendarTopbar: CalendarTopbarPage;
let context: any; let context: any;
async function undo({ page, dashboard }: { page: Page; dashboard: DashboardPage }) { async function undo({
page,
dashboard,
validateResponse,
}: {
page: Page;
dashboard: DashboardPage;
validateResponse: boolean;
}) {
const isMac = await dashboard.grid.isMacOs(); const isMac = await dashboard.grid.isMacOs();
if (validateResponse) { if (validateResponse) {
@ -272,7 +280,7 @@ test.describe('View', () => {
await dashboard.viewSidebar.deleteView({ title: 'Calendar' }); await dashboard.viewSidebar.deleteView({ title: 'Calendar' });
}); });
test.only('Calendar Drag and Drop & Undo Redo Operations', async () => { test('Calendar Drag and Drop & Undo Redo Operations', async () => {
await dashboard.viewSidebar.createCalendarView({ await dashboard.viewSidebar.createCalendarView({
title: 'Calendar', title: 'Calendar',
}); });

Loading…
Cancel
Save