From 989f697a42c8425a0cf78433bd62ef1d0c625df8 Mon Sep 17 00:00:00 2001 From: Roman Semenov Date: Mon, 15 Jul 2024 15:25:17 +0400 Subject: [PATCH] try: testcafe only --- .../viewOffset/markup/usualAppointments.ts | 32 ++++++++++--------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/usualAppointments.ts b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/usualAppointments.ts index 6e5ad64001a5..ff44f63d2d5b 100644 --- a/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/usualAppointments.ts +++ b/e2e/testcafe-devextreme/tests/scheduler/viewOffset/markup/usualAppointments.ts @@ -95,31 +95,31 @@ const getViewWithCorrectCellDuration = ( }; [ - { views: [{ type: 'day', cellDuration: 60, firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.day }, - { views: [{ type: 'week', cellDuration: 60, firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.week }, + // { views: [{ type: 'day', cellDuration: 60, firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.day }, + // { views: [{ type: 'week', cellDuration: 60, firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.week }, { views: [{ type: 'workWeek', cellDuration: 60, firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.week }, - { views: [{ type: 'workWeek', cellDuration: 60, firstDayOfWeek: 3 }], dataSource: APPOINTMENTS.workWeekWithFirstDay }, - { views: [{ type: 'month', firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.month }, - { views: [{ type: 'timelineDay', cellDuration: 240, firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.timelineDay }, - { views: [{ type: 'timelineWeek', firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.timelineWeek }, + // { views: [{ type: 'workWeek', cellDuration: 60, firstDayOfWeek: 3 }], dataSource: APPOINTMENTS.workWeekWithFirstDay }, + // { views: [{ type: 'month', firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.month }, + // { views: [{ type: 'timelineDay', cellDuration: 240, firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.timelineDay }, + // { views: [{ type: 'timelineWeek', firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.timelineWeek }, // NOTE: The timelineWorkWeek view has some existing issues // Therefore some screenshots is invalid :( - { views: [{ type: 'timelineWorkWeek', firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.timelineWeek }, - { views: [{ type: 'timelineWorkWeek', firstDayOfWeek: 3 }], dataSource: APPOINTMENTS.timelineWeekWithFirstDay }, - { views: [{ type: 'timelineMonth', firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.month }, + // { views: [{ type: 'timelineWorkWeek', firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.timelineWeek }, + // { views: [{ type: 'timelineWorkWeek', firstDayOfWeek: 3 }], dataSource: APPOINTMENTS.timelineWeekWithFirstDay }, + // { views: [{ type: 'timelineMonth', firstDayOfWeek: 0 }], dataSource: APPOINTMENTS.month }, ].forEach(({ views, dataSource }) => { [ - 0, + // 0, 735, - 1440, - -735, - -1440, + // 1440, + // -735, + // -1440, ].forEach((offset) => { [ { startDayHour: 0, endDayHour: 24 }, - { startDayHour: 9, endDayHour: 17 }, + // { startDayHour: 9, endDayHour: 17 }, ].forEach(({ startDayHour, endDayHour }) => { - test(` + test.only(` Usual appointments and workspaces render ( view: ${views[0].type}, offset: ${offset}, @@ -130,6 +130,8 @@ first day: ${views[0].firstDayOfWeek} const scheduler = new Scheduler(SCHEDULER_SELECTOR); const { takeScreenshot, compareResults } = createScreenshotsComparer(t); + await t.debug(); + await takeScreenshot( getScreenshotName( views[0].type,