Skip to content

Commit

Permalink
try: testcafe only
Browse files Browse the repository at this point in the history
  • Loading branch information
pomahtri committed Jul 15, 2024
1 parent 2dbdc87 commit 989f697
Showing 1 changed file with 17 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand All @@ -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,
Expand Down

0 comments on commit 989f697

Please sign in to comment.