Skip to content

Commit ca9503a

Browse files
authored
fix multiline header screenshots for scheduler toolbar (DevExpress#29232)
Co-authored-by: Vladimir Bushmanov <[email protected]>
1 parent 9a5de8b commit ca9503a

9 files changed

+6
-3
lines changed
-8.18 KB
Loading
-7.37 KB
Loading

e2e/testcafe-devextreme/tests/scheduler/common/header/multiline_header.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ const buttons = Array.from({ length: 12 }).map((_, index) => ({
1717
test(`Scheduler [multiline=${multiline}] toolbar`, async (t) => {
1818
const scheduler = new Scheduler('#container');
1919

20-
await t.expect(await compareScreenshot(t, `scheduler-multiline-${multiline}-toolbar.png`, scheduler.element)).ok();
20+
await t.expect(
21+
await compareScreenshot(t, `scheduler-multiline-${multiline}-toolbar.png`, scheduler.toolbar.element),
22+
).ok();
2123
}).before(async () => createWidget('dxScheduler', {
2224
views: ['day', 'week', 'workWeek', 'month'],
2325
currentView: 'workWeek',
Loading
6.74 KB
Loading
Loading
41 Bytes
Loading
Loading

e2e/testcafe-devextreme/tests/scheduler/common/layout/resources/base/generic.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@ const resources = [{
3434
label: 'Priority',
3535
}];
3636

37+
// TODO: sometimes hover doesn't trigger on click and screenshots are different
3738
[undefined, resources].forEach((resourcesValue) => {
3839
['day', 'week', 'workWeek', 'month'].forEach((view) => {
39-
test(`Base views layout test in generic theme with resources(view='${view})', resource=${!!resourcesValue}`, async (t) => {
40+
test.skip(`Base views layout test in generic theme with resources(view='${view})', resource=${!!resourcesValue}`, async (t) => {
4041
const scheduler = new Scheduler('#container');
4142

4243
await t.click(scheduler.getAppointment('1 appointment', 0).element);
@@ -49,7 +50,7 @@ const resources = [{
4950

5051
[undefined, resources].forEach((resourcesValue) => {
5152
['timelineDay', 'timelineWeek', 'timelineWorkWeek', 'timelineMonth'].forEach((view) => {
52-
test(`Timeline views layout test in generic theme with resources(view='${view})', resource=${!!resourcesValue}`, async (t) => {
53+
test.skip(`Timeline views layout test in generic theme with resources(view='${view})', resource=${!!resourcesValue}`, async (t) => {
5354
const scheduler = new Scheduler('#container');
5455

5556
await t.click(scheduler.getAppointment('1 appointment', 0).element);

0 commit comments

Comments
 (0)