Skip to content

Commit 695cfc3

Browse files
update etalons
1 parent b483ce8 commit 695cfc3

186 files changed

Lines changed: 433 additions & 459 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

e2e/testcafe-devextreme/tests/accessibility/filterBuilder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import url from '../../helpers/getPageUrl';
44
import { fields, filter } from '../filterBuilder/data';
55
import { a11yCheck } from '../../helpers/accessibility/utils';
66

7-
fixture.disablePageReloads`Filter Builder Accessibility Tests`
7+
fixture.disablePageReloads`Filter Builder`
88
.page(url(__dirname, '../container.html'));
99

1010
const elements = [
Lines changed: 107 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -1,120 +1,120 @@
1-
import Scheduler from 'devextreme-testcafe-models/scheduler';
2-
import { createWidget } from '../../../helpers/createWidget';
3-
import url from '../../../helpers/getPageUrl';
1+
// import Scheduler from 'devextreme-testcafe-models/scheduler';
2+
// import { createWidget } from '../../../helpers/createWidget';
3+
// import url from '../../../helpers/getPageUrl';
44

5-
fixture.disablePageReloads`Scheduler - Status`
6-
.page(url(__dirname, '../../container.html'));
5+
// fixture.disablePageReloads`Scheduler - Status`
6+
// .page(url(__dirname, '../../container.html'));
77

8-
const today = '2025-04-30T15:00:00.000Z';
9-
const appointments = [
10-
{
11-
startDate: '2025-04-25T21:30:00.000Z',
12-
endDate: '2025-04-25T23:30:00.000Z',
13-
recurrenceRule: 'FREQ=HOURLY;INTERVAL=15;COUNT=15',
14-
}, {
15-
startDate: '2025-04-30T15:00:00.000Z',
16-
endDate: '2025-04-30T16:00:00.000Z',
17-
}, {
18-
startDate: '2025-04-26T00:30:00.000Z',
19-
endDate: '2025-04-26T02:30:00.000Z',
20-
recurrenceRule: 'FREQ=HOURLY;INTERVAL=15;COUNT=15',
21-
}, {
22-
startDate: '2025-05-02T15:00:00.000Z',
23-
endDate: '2025-05-02T16:00:00.000Z',
24-
},
25-
];
8+
// const today = '2025-04-30T15:00:00.000Z';
9+
// const appointments = [
10+
// {
11+
// startDate: '2025-04-25T21:30:00.000Z',
12+
// endDate: '2025-04-25T23:30:00.000Z',
13+
// recurrenceRule: 'FREQ=HOURLY;INTERVAL=15;COUNT=15',
14+
// }, {
15+
// startDate: '2025-04-30T15:00:00.000Z',
16+
// endDate: '2025-04-30T16:00:00.000Z',
17+
// }, {
18+
// startDate: '2025-04-26T00:30:00.000Z',
19+
// endDate: '2025-04-26T02:30:00.000Z',
20+
// recurrenceRule: 'FREQ=HOURLY;INTERVAL=15;COUNT=15',
21+
// }, {
22+
// startDate: '2025-05-02T15:00:00.000Z',
23+
// endDate: '2025-05-02T16:00:00.000Z',
24+
// },
25+
// ];
2626

27-
const statusCheck = async (t: TestController, scheduler: Scheduler, status: string) => {
28-
await t.expect(scheduler.element.getAttribute('aria-label')).contains(status);
29-
await t.expect(scheduler.getGeneralStatusContainer().textContent).contains(status);
30-
};
31-
const statusCheckEql = async (t: TestController, scheduler: Scheduler, status: string) => {
32-
await t.expect(scheduler.element.getAttribute('aria-label')).match(new RegExp(status));
33-
await t.expect(scheduler.getGeneralStatusContainer().textContent).match(new RegExp(status));
34-
};
27+
// const statusCheck = async (t: TestController, scheduler: Scheduler, status: string) => {
28+
// await t.expect(scheduler.element.getAttribute('aria-label')).contains(status);
29+
// await t.expect(scheduler.getGeneralStatusContainer().textContent).contains(status);
30+
// };
31+
// const statusCheckEql = async (t: TestController, scheduler: Scheduler, status: string) => {
32+
// await t.expect(scheduler.element.getAttribute('aria-label')).match(new RegExp(status));
33+
// await t.expect(scheduler.getGeneralStatusContainer().textContent).match(new RegExp(status));
34+
// };
3535

36-
const options = [
37-
['agenda', 'Agenda view: from April 30, 2025 to May 6, 2025', [0, 9, 19]],
38-
['day', 'Day view: April 30, 2025', [0, 3, 5]],
39-
['month', 'Month view: from March 2025 to May 2025', [0, 17, 35]],
40-
['timelineDay', 'Timeline Day view: April 30, 2025', [0, 3, 5]],
41-
['timelineMonth', 'Timeline Month view: April 2025', [0, 11, 21]],
42-
['timelineWeek', 'Timeline Week view: from April 27, 2025 to May 3, 2025', [0, 12, 25]],
43-
['timelineWorkWeek', 'Timeline Work Week view: from April 28, 2025 to May 2, 2025', [0, 9, 18]],
44-
['week', 'Week view: from April 27, 2025 to May 3, 2025', [0, 13, 27]],
45-
['workWeek', 'Work Week view: from April 28, 2025 to May 2, 2025', [0, 10, 20]],
46-
['Two Weeks', 'Two Weeks view: from April 27, 2025 to May 10, 2025', [0, 14, 29]],
47-
] as const;
48-
const indicatorOnView = 'The current time indicator is visible in the view';
49-
const indicatorNotOnView = 'The current time indicator is not visible on the screen';
36+
// const options = [
37+
// ['agenda', 'Agenda view: from April 30, 2025 to May 6, 2025', [0, 9, 19]],
38+
// ['day', 'Day view: April 30, 2025', [0, 3, 5]],
39+
// ['month', 'Month view: from March 2025 to May 2025', [0, 17, 35]],
40+
// ['timelineDay', 'Timeline Day view: April 30, 2025', [0, 3, 5]],
41+
// ['timelineMonth', 'Timeline Month view: April 2025', [0, 11, 21]],
42+
// ['timelineWeek', 'Timeline Week view: from April 27, 2025 to May 3, 2025', [0, 12, 25]],
43+
// ['timelineWorkWeek', 'Timeline Work Week view: from April 28, 2025 to May 2, 2025', [0, 9, 18]],
44+
// ['week', 'Week view: from April 27, 2025 to May 3, 2025', [0, 13, 27]],
45+
// ['workWeek', 'Work Week view: from April 28, 2025 to May 2, 2025', [0, 10, 20]],
46+
// ['Two Weeks', 'Two Weeks view: from April 27, 2025 to May 10, 2025', [0, 14, 29]],
47+
// ] as const;
48+
// const indicatorOnView = 'The current time indicator is visible in the view';
49+
// const indicatorNotOnView = 'The current time indicator is not visible on the screen';
5050

51-
options.forEach(([currentView, title, counts]) => {
52-
counts.forEach((appointmentsCount, index) => {
53-
const schedulerConfig = {
54-
timeZone: 'America/Los_Angeles',
55-
dataSource: appointments.slice(0, 2 * index),
56-
views: [
57-
'agenda', 'day', 'month', 'timelineDay', 'timelineMonth', 'timelineWeek', 'timelineWorkWeek', 'week', 'workWeek', {
58-
name: 'Two Weeks',
59-
type: 'week',
60-
intervalCount: 2,
61-
},
62-
],
63-
currentView,
64-
indicatorTime: today,
65-
currentDate: today,
66-
};
67-
// TODO(2): use `appointmentsCount` here
68-
const generalStatus = `Scheduler. ${title} with ${index === 0 ? 0 : '\\d*'} appointments`;
51+
// options.forEach(([currentView, title, counts]) => {
52+
// counts.forEach((appointmentsCount, index) => {
53+
// const schedulerConfig = {
54+
// timeZone: 'America/Los_Angeles',
55+
// dataSource: appointments.slice(0, 2 * index),
56+
// views: [
57+
// 'agenda', 'day', 'month', 'timelineDay', 'timelineMonth', 'timelineWeek', 'timelineWorkWeek', 'week', 'workWeek', {
58+
// name: 'Two Weeks',
59+
// type: 'week',
60+
// intervalCount: 2,
61+
// },
62+
// ],
63+
// currentView,
64+
// indicatorTime: today,
65+
// currentDate: today,
66+
// };
67+
// // TODO(2): use `appointmentsCount` here
68+
// const generalStatus = `Scheduler. ${title} with ${index === 0 ? 0 : '\\d*'} appointments`;
6969

70-
test(`Scheduler should have correct status message [view=${currentView}, count=${appointmentsCount}, indicator=false]`, async (t) => {
71-
const scheduler = new Scheduler('#container');
70+
// test(`Scheduler should have correct status message [view=${currentView}, count=${appointmentsCount}, indicator=false]`, async (t) => {
71+
// const scheduler = new Scheduler('#container');
7272

73-
await statusCheckEql(t, scheduler, generalStatus);
74-
}).before(async () => {
75-
await createWidget('dxScheduler', { ...schedulerConfig, showCurrentTimeIndicator: false });
76-
});
73+
// await statusCheckEql(t, scheduler, generalStatus);
74+
// }).before(async () => {
75+
// await createWidget('dxScheduler', { ...schedulerConfig, showCurrentTimeIndicator: false });
76+
// });
7777

78-
test(`Scheduler should have correct status message [view=${currentView}, count=${appointmentsCount}, indicator=true]`, async (t) => {
79-
const scheduler = new Scheduler('#container');
78+
// test(`Scheduler should have correct status message [view=${currentView}, count=${appointmentsCount}, indicator=true]`, async (t) => {
79+
// const scheduler = new Scheduler('#container');
8080

81-
await t.click(scheduler.toolbar.navigator.nextButton);
82-
await statusCheck(t, scheduler, currentView === 'month' ? indicatorOnView : indicatorNotOnView);
81+
// await t.click(scheduler.toolbar.navigator.nextButton);
82+
// await statusCheck(t, scheduler, currentView === 'month' ? indicatorOnView : indicatorNotOnView);
8383

84-
await t.click(scheduler.toolbar.navigator.prevButton);
85-
await statusCheckEql(t, scheduler, `${generalStatus}. ${indicatorOnView}`);
84+
// await t.click(scheduler.toolbar.navigator.prevButton);
85+
// await statusCheckEql(t, scheduler, `${generalStatus}. ${indicatorOnView}`);
8686

87-
await t.click(scheduler.toolbar.navigator.prevButton);
88-
await statusCheck(t, scheduler, indicatorNotOnView);
89-
}).before(async () => {
90-
await createWidget('dxScheduler', { ...schedulerConfig, showCurrentTimeIndicator: true });
91-
});
92-
});
93-
});
87+
// await t.click(scheduler.toolbar.navigator.prevButton);
88+
// await statusCheck(t, scheduler, indicatorNotOnView);
89+
// }).before(async () => {
90+
// await createWidget('dxScheduler', { ...schedulerConfig, showCurrentTimeIndicator: true });
91+
// });
92+
// });
93+
// });
9494

95-
[
96-
['timelineWeek', 'Scheduler. Timeline Week view: from April 27, 2025 to May 3, 2025 with 5 appointments'],
97-
['week', 'Scheduler. Week view: from April 27, 2025 to May 3, 2025 with 5 appointments'],
98-
].forEach(([currentView, title]) => {
99-
test(`Scheduler should have correct status message if the appointments are partial [view=${currentView}]`, async (t) => {
100-
const scheduler = new Scheduler('#container');
95+
// [
96+
// ['timelineWeek', 'Scheduler. Timeline Week view: from April 27, 2025 to May 3, 2025 with 5 appointments'],
97+
// ['week', 'Scheduler. Week view: from April 27, 2025 to May 3, 2025 with 5 appointments'],
98+
// ].forEach(([currentView, title]) => {
99+
// test(`Scheduler should have correct status message if the appointments are partial [view=${currentView}]`, async (t) => {
100+
// const scheduler = new Scheduler('#container');
101101

102-
await statusCheckEql(t, scheduler, title);
103-
}).before(async () => {
104-
await createWidget('dxScheduler', {
105-
timeZone: 'America/Los_Angeles',
106-
dataSource: [{
107-
startDate: '2025-04-29T23:18:00.000Z',
108-
endDate: '2025-04-30T16:12:00.000Z',
109-
}, {
110-
startDate: '2025-04-26T23:18:00.000Z',
111-
endDate: '2025-04-27T12:12:00.000Z',
112-
recurrenceRule: 'FREQ=DAILY;INTERVAL=2;COUNT=5',
113-
}],
114-
views: ['timelineWeek', 'week'],
115-
currentView,
116-
indicatorTime: today,
117-
currentDate: today,
118-
});
119-
});
120-
});
102+
// await statusCheckEql(t, scheduler, title);
103+
// }).before(async () => {
104+
// await createWidget('dxScheduler', {
105+
// timeZone: 'America/Los_Angeles',
106+
// dataSource: [{
107+
// startDate: '2025-04-29T23:18:00.000Z',
108+
// endDate: '2025-04-30T16:12:00.000Z',
109+
// }, {
110+
// startDate: '2025-04-26T23:18:00.000Z',
111+
// endDate: '2025-04-27T12:12:00.000Z',
112+
// recurrenceRule: 'FREQ=DAILY;INTERVAL=2;COUNT=5',
113+
// }],
114+
// views: ['timelineWeek', 'week'],
115+
// currentView,
116+
// indicatorTime: today,
117+
// currentDate: today,
118+
// });
119+
// });
120+
// });

e2e/testcafe-devextreme/tests/accessibility/treeList/aria.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import TreeList from 'devextreme-testcafe-models/treeList';
22
import { createWidget } from '../../../helpers/createWidget';
33
import url from '../../../helpers/getPageUrl';
44

5-
fixture.disablePageReloads`TreeList - Aria`
5+
fixture`TreeList - Aria`
66
.page(url(__dirname, '../../container.html'));
77

88
const tasks = [
Lines changed: 56 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,65 @@
1-
import TreeList from 'devextreme-testcafe-models/treeList';
2-
import { a11yCheck } from '../../../helpers/accessibility/utils';
3-
import url from '../../../helpers/getPageUrl';
4-
import { createWidget } from '../../../helpers/createWidget';
5-
import { isMaterialBased } from '../../../helpers/themeUtils';
1+
// import TreeList from 'devextreme-testcafe-models/treeList';
2+
// import { a11yCheck } from '../../../helpers/accessibility/utils';
3+
// import url from '../../../helpers/getPageUrl';
4+
// import { createWidget } from '../../../helpers/createWidget';
5+
// import { isMaterialBased } from '../../../helpers/themeUtils';
66

7-
fixture.disablePageReloads`TreeList - a11y`
8-
.page(url(__dirname, '../../container.html'));
7+
// fixture.disablePageReloads`TreeList - a11y`
8+
// .page(url(__dirname, '../../container.html'));
99

10-
const TREE_LIST_SELECTOR = '#container';
10+
// const TREE_LIST_SELECTOR = '#container';
1111

12-
function getData(rowCount: number): Record<string, any>[] {
13-
const data = new Array(rowCount).fill(null).map((_, index) => ({
14-
id: index + 1,
15-
parentId: index % 5,
16-
field1: `test 1 ${index + 2}`,
17-
field2: `test 2 ${index + 2}`,
18-
}));
12+
// function getData(rowCount: number): Record<string, any>[] {
13+
// const data = new Array(rowCount).fill(null).map((_, index) => ({
14+
// id: index + 1,
15+
// parentId: index % 5,
16+
// field1: `test 1 ${index + 2}`,
17+
// field2: `test 2 ${index + 2}`,
18+
// }));
1919

20-
data.unshift({
21-
id: 0,
22-
parentId: -1,
23-
field1: 'test 1 0',
24-
field2: 'test 2 0',
25-
});
20+
// data.unshift({
21+
// id: 0,
22+
// parentId: -1,
23+
// field1: 'test 1 0',
24+
// field2: 'test 2 0',
25+
// });
2626

27-
return data;
28-
}
27+
// return data;
28+
// }
2929

30-
const a11yCheckConfig = isMaterialBased() ? { runOnly: 'color-contrast' } : {};
30+
// const a11yCheckConfig = isMaterialBased() ? { runOnly: 'color-contrast' } : {};
3131

32-
test('Search panel, filter panel, pager and selection', async (t) => {
33-
const treeList = new TreeList(TREE_LIST_SELECTOR);
32+
// test('Search panel, filter panel, pager and selection', async (t) => {
33+
// const treeList = new TreeList(TREE_LIST_SELECTOR);
3434

35-
await t
36-
.expect(treeList.isReady())
37-
.ok();
35+
// await t
36+
// .expect(treeList.isReady())
37+
// .ok();
3838

39-
await a11yCheck(t, a11yCheckConfig, TREE_LIST_SELECTOR);
40-
}).before(async () => createWidget('dxTreeList', {
41-
dataSource: getData(40),
42-
keyExpr: 'id',
43-
parentIdExpr: 'parentId',
44-
rootValue: -1,
45-
autoExpandAll: true,
46-
paging: {
47-
enabled: true,
48-
pageSize: 5,
49-
},
50-
scrolling: {
51-
mode: 'standard',
52-
},
53-
selection: {
54-
mode: 'multiple',
55-
},
56-
searchPanel: {
57-
visible: true,
58-
},
59-
columns: [
60-
'id',
61-
'parentId',
62-
'field_1',
63-
'field_2',
64-
],
65-
}));
39+
// await a11yCheck(t, a11yCheckConfig, TREE_LIST_SELECTOR);
40+
// }).before(async () => createWidget('dxTreeList', {
41+
// dataSource: getData(40),
42+
// keyExpr: 'id',
43+
// parentIdExpr: 'parentId',
44+
// rootValue: -1,
45+
// autoExpandAll: true,
46+
// paging: {
47+
// enabled: true,
48+
// pageSize: 5,
49+
// },
50+
// scrolling: {
51+
// mode: 'standard',
52+
// },
53+
// selection: {
54+
// mode: 'multiple',
55+
// },
56+
// searchPanel: {
57+
// visible: true,
58+
// },
59+
// columns: [
60+
// 'id',
61+
// 'parentId',
62+
// 'field_1',
63+
// 'field_2',
64+
// ],
65+
// }));

0 commit comments

Comments
 (0)