forked from DevExpress/DevExtreme
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Scheduler - Appointments overflow groups in certain cases (T1223907) (D…
- Loading branch information
Showing
19 changed files
with
97 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+78 KB
...ts/scheduler/grouping/etalons/group-overflow-(month-horizontal-allDay-0-24).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+78 KB
...ts/scheduler/grouping/etalons/group-overflow-(month-horizontal-allDay-9-14).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+78 KB
...ts/scheduler/grouping/etalons/group-overflow-(month-horizontal-hidden-0-24).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+78 KB
...ts/scheduler/grouping/etalons/group-overflow-(month-horizontal-hidden-9-14).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+49.4 KB
...ests/scheduler/grouping/etalons/group-overflow-(month-vertical-allDay-0-24).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+49.4 KB
...ests/scheduler/grouping/etalons/group-overflow-(month-vertical-allDay-9-14).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+49.4 KB
...ests/scheduler/grouping/etalons/group-overflow-(month-vertical-hidden-0-24).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+49.4 KB
...ests/scheduler/grouping/etalons/group-overflow-(month-vertical-hidden-9-14).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+31.3 KB
...sts/scheduler/grouping/etalons/group-overflow-(week-horizontal-allDay-0-24).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+33 KB
...sts/scheduler/grouping/etalons/group-overflow-(week-horizontal-allDay-9-14).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+31.3 KB
...sts/scheduler/grouping/etalons/group-overflow-(week-horizontal-hidden-0-24).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+33 KB
...sts/scheduler/grouping/etalons/group-overflow-(week-horizontal-hidden-9-14).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+58.8 KB
...tests/scheduler/grouping/etalons/group-overflow-(week-vertical-allDay-0-24).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+56.2 KB
...tests/scheduler/grouping/etalons/group-overflow-(week-vertical-allDay-9-14).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+58.8 KB
...tests/scheduler/grouping/etalons/group-overflow-(week-vertical-hidden-0-24).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+56.2 KB
...tests/scheduler/grouping/etalons/group-overflow-(week-vertical-hidden-9-14).png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
81 changes: 81 additions & 0 deletions
81
packages/devextreme/testing/testcafe/tests/scheduler/grouping/overflow.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
import { createScreenshotsComparer } from 'devextreme-screenshot-comparer'; | ||
import Scheduler from 'devextreme-testcafe-models/scheduler'; | ||
import { createWidget } from '../../../helpers/createWidget'; | ||
import url from '../../../helpers/getPageUrl'; | ||
|
||
fixture.disablePageReloads`Scheduler: Grouping overflow` | ||
.page(url(__dirname, '../../container.html')); | ||
|
||
['week', 'month'].forEach((viewType) => { | ||
['vertical', 'horizontal'].forEach((groupOrientation) => { | ||
['hidden', 'allDay'].forEach((allDayPanelMode) => { | ||
[[9, 14, 60], [0, 24, 360]].forEach(([startDayHour, endDayHour, cellDuration]) => { | ||
const allParams = `${viewType}-${groupOrientation}-${allDayPanelMode}-${startDayHour}-${endDayHour}`; | ||
|
||
test(`Long appointments should not overflow group view (${allParams})`, async (t) => { | ||
const scheduler = new Scheduler('#container'); | ||
const { takeScreenshot, compareResults } = createScreenshotsComparer(t); | ||
|
||
await t | ||
.expect(await takeScreenshot(`group-overflow-(${allParams}).png`, scheduler.element)) | ||
.ok() | ||
.expect(compareResults.isValid()) | ||
.ok(compareResults.errorMessages()); | ||
}).before(async () => createWidget('dxScheduler', { | ||
dataSource: [ | ||
{ | ||
text: '1', | ||
priorityId: 1, | ||
startDate: '2021-04-19T16:30:00', | ||
endDate: '2021-04-25T18:30:00', | ||
}, { | ||
text: '2', | ||
priorityId: 2, | ||
startDate: '2021-04-19T16:30:00', | ||
endDate: '2021-04-25T18:30:00', | ||
}, { | ||
text: '3', | ||
priorityId: 3, | ||
startDate: '2021-04-19T16:30:00', | ||
endDate: '2021-04-25T18:30:00', | ||
}, | ||
], | ||
views: [{ | ||
type: viewType, | ||
name: 'myView', | ||
groupOrientation, | ||
}], | ||
cellDuration, | ||
currentView: 'myView', | ||
currentDate: new Date(2021, 3, 21), | ||
allDayPanelMode, | ||
startDayHour, | ||
endDayHour, | ||
groups: ['priorityId'], | ||
resources: [ | ||
{ | ||
fieldExpr: 'priorityId', | ||
dataSource: [ | ||
{ | ||
text: 'Low Priority', | ||
id: 1, | ||
color: '#1e90ff', | ||
}, { | ||
text: 'High Priority', | ||
id: 2, | ||
color: '#ff9747', | ||
}, | ||
{ | ||
text: 'Custom', | ||
id: 3, | ||
color: 'red', | ||
}, | ||
], | ||
}, | ||
], | ||
showAllDayPanel: false, | ||
})); | ||
}); | ||
}); | ||
}); | ||
}); |