Skip to content

Commit 88d7aec

Browse files
authored
CI optimization: optimized TestCafe accessibility tests (Editors) (#3… (#31298)
1 parent c062914 commit 88d7aec

Some content is hidden

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

54 files changed

+1047
-977
lines changed

.github/workflows/pr-filter-stubs.yml

Lines changed: 12 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -180,147 +180,84 @@ jobs:
180180
- run: exit 1
181181
# testcafe_tests.yml
182182
testcafe_tests_accessibility_1:
183-
name: 'accessibility (1/7)'
183+
name: 'accessibility (1/4)'
184184
needs: [ changesSegregation ]
185185
if: false
186186
runs-on: ubuntu-latest
187187
steps:
188188
- run: exit 1
189189
testcafe_tests_accessibility_2:
190-
name: 'accessibility (2/7)'
190+
name: 'accessibility (2/4)'
191191
needs: [ changesSegregation ]
192192
if: false
193193
runs-on: ubuntu-latest
194194
steps:
195195
- run: exit 1
196196
testcafe_tests_accessibility_3:
197-
name: 'accessibility (3/7)'
197+
name: 'accessibility (3/4)'
198198
needs: [ changesSegregation ]
199199
if: false
200200
runs-on: ubuntu-latest
201201
steps:
202202
- run: exit 1
203203
testcafe_tests_accessibility_4:
204-
name: 'accessibility (4/7)'
205-
needs: [ changesSegregation ]
206-
if: false
207-
runs-on: ubuntu-latest
208-
steps:
209-
- run: exit 1
210-
testcafe_tests_accessibility_5:
211-
name: 'accessibility (5/7)'
212-
needs: [ changesSegregation ]
213-
if: false
214-
runs-on: ubuntu-latest
215-
steps:
216-
- run: exit 1
217-
testcafe_tests_accessibility_6:
218-
name: 'accessibility (6/7)'
219-
needs: [ changesSegregation ]
220-
if: false
221-
runs-on: ubuntu-latest
222-
steps:
223-
- run: exit 1
224-
testcafe_tests_accessibility_7:
225-
name: 'accessibility (7/7)'
204+
name: 'accessibility (4/4)'
226205
needs: [ changesSegregation ]
227206
if: false
228207
runs-on: ubuntu-latest
229208
steps:
230209
- run: exit 1
231210
testcafe_tests6:
232-
name: 'accessibility - material (1/7)'
211+
name: 'accessibility - material (1/4)'
233212
needs: [ changesSegregation ]
234213
if: false
235214
runs-on: ubuntu-latest
236215
steps:
237216
- run: exit 1
238217
testcafe_tests7:
239-
name: 'accessibility - material (2/7)'
218+
name: 'accessibility - material (2/4)'
240219
needs: [ changesSegregation ]
241220
if: false
242221
runs-on: ubuntu-latest
243222
steps:
244223
- run: exit 1
245224
testcafe_tests8:
246-
name: 'accessibility - material (3/7)'
225+
name: 'accessibility - material (3/4)'
247226
needs: [ changesSegregation ]
248227
if: false
249228
runs-on: ubuntu-latest
250229
steps:
251230
- run: exit 1
252231
testcafe_tests9:
253-
name: 'accessibility - material (4/7)'
254-
needs: [ changesSegregation ]
255-
if: false
256-
runs-on: ubuntu-latest
257-
steps:
258-
- run: exit 1
259-
testcafe_tests10:
260-
name: 'accessibility - material (5/7)'
261-
needs: [ changesSegregation ]
262-
if: false
263-
runs-on: ubuntu-latest
264-
steps:
265-
- run: exit 1
266-
testcafe_tests11:
267-
name: 'accessibility - material (6/7)'
268-
needs: [ changesSegregation ]
269-
if: false
270-
runs-on: ubuntu-latest
271-
steps:
272-
- run: exit 1
273-
testcafe_tests12:
274-
name: 'accessibility - material (7/7)'
232+
name: 'accessibility - material (4/4)'
275233
needs: [ changesSegregation ]
276234
if: false
277235
runs-on: ubuntu-latest
278236
steps:
279237
- run: exit 1
280238
testcafe_tests13:
281-
name: 'accessibility - fluent (1/7)'
239+
name: 'accessibility - fluent (1/4)'
282240
needs: [ changesSegregation ]
283241
if: false
284242
runs-on: ubuntu-latest
285243
steps:
286244
- run: exit 1
287245
testcafe_tests14:
288-
name: 'accessibility - fluent (2/7)'
246+
name: 'accessibility - fluent (2/4)'
289247
needs: [ changesSegregation ]
290248
if: false
291249
runs-on: ubuntu-latest
292250
steps:
293251
- run: exit 1
294252
testcafe_tests15:
295-
name: 'accessibility - fluent (3/7)'
253+
name: 'accessibility - fluent (3/4)'
296254
needs: [ changesSegregation ]
297255
if: false
298256
runs-on: ubuntu-latest
299257
steps:
300258
- run: exit 1
301259
testcafe_tests16:
302-
name: 'accessibility - fluent (4/7)'
303-
needs: [ changesSegregation ]
304-
if: false
305-
runs-on: ubuntu-latest
306-
steps:
307-
- run: exit 1
308-
testcafe_tests17:
309-
name: 'accessibility - fluent (5/7)'
310-
needs: [ changesSegregation ]
311-
if: false
312-
runs-on: ubuntu-latest
313-
steps:
314-
- run: exit 1
315-
testcafe_tests18:
316-
name: 'accessibility - fluent (6/7)'
317-
needs: [ changesSegregation ]
318-
if: false
319-
runs-on: ubuntu-latest
320-
steps:
321-
- run: exit 1
322-
testcafe_tests19:
323-
name: 'accessibility - fluent (7/7)'
260+
name: 'accessibility - fluent (4/4)'
324261
needs: [ changesSegregation ]
325262
if: false
326263
runs-on: ubuntu-latest

.github/workflows/testcafe_tests.yml

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -79,27 +79,18 @@ jobs:
7979
fail-fast: false
8080
matrix:
8181
ARGS: [
82-
{ componentFolder: "accessibility", name: "accessibility (1/7)", indices: "1/7" },
83-
{ componentFolder: "accessibility", name: "accessibility (2/7)", indices: "2/7" },
84-
{ componentFolder: "accessibility", name: "accessibility (3/7)", indices: "3/7" },
85-
{ componentFolder: "accessibility", name: "accessibility (4/7)", indices: "4/7" },
86-
{ componentFolder: "accessibility", name: "accessibility (5/7)", indices: "5/7" },
87-
{ componentFolder: "accessibility", name: "accessibility (6/7)", indices: "6/7" },
88-
{ componentFolder: "accessibility", name: "accessibility (7/7)", indices: "7/7" },
89-
{ componentFolder: "accessibility", name: "accessibility - material (1/7)", theme: "material.blue.light", indices: "1/7" },
90-
{ componentFolder: "accessibility", name: "accessibility - material (2/7)", theme: "material.blue.light", indices: "2/7" },
91-
{ componentFolder: "accessibility", name: "accessibility - material (3/7)", theme: "material.blue.light", indices: "3/7" },
92-
{ componentFolder: "accessibility", name: "accessibility - material (4/7)", theme: "material.blue.light", indices: "4/7" },
93-
{ componentFolder: "accessibility", name: "accessibility - material (5/7)", theme: "material.blue.light", indices: "5/7" },
94-
{ componentFolder: "accessibility", name: "accessibility - material (6/7)", theme: "material.blue.light", indices: "6/7" },
95-
{ componentFolder: "accessibility", name: "accessibility - material (7/7)", theme: "material.blue.light", indices: "7/7" },
96-
{ componentFolder: "accessibility", name: "accessibility - fluent (1/7)", theme: "fluent.blue.light", indices: "1/7" },
97-
{ componentFolder: "accessibility", name: "accessibility - fluent (2/7)", theme: "fluent.blue.light", indices: "2/7" },
98-
{ componentFolder: "accessibility", name: "accessibility - fluent (3/7)", theme: "fluent.blue.light", indices: "3/7" },
99-
{ componentFolder: "accessibility", name: "accessibility - fluent (4/7)", theme: "fluent.blue.light", indices: "4/7" },
100-
{ componentFolder: "accessibility", name: "accessibility - fluent (5/7)", theme: "fluent.blue.light", indices: "5/7" },
101-
{ componentFolder: "accessibility", name: "accessibility - fluent (6/7)", theme: "fluent.blue.light", indices: "6/7" },
102-
{ componentFolder: "accessibility", name: "accessibility - fluent (7/7)", theme: "fluent.blue.light", indices: "7/7" },
82+
{ componentFolder: "accessibility", name: "accessibility (1/4)", indices: "1/4" },
83+
{ componentFolder: "accessibility", name: "accessibility (2/4)", indices: "2/4" },
84+
{ componentFolder: "accessibility", name: "accessibility (3/4)", indices: "3/4" },
85+
{ componentFolder: "accessibility", name: "accessibility (4/4)", indices: "4/4" },
86+
{ componentFolder: "accessibility", name: "accessibility - material (1/4)", theme: "material.blue.light", indices: "1/4" },
87+
{ componentFolder: "accessibility", name: "accessibility - material (2/4)", theme: "material.blue.light", indices: "2/4" },
88+
{ componentFolder: "accessibility", name: "accessibility - material (3/4)", theme: "material.blue.light", indices: "3/4" },
89+
{ componentFolder: "accessibility", name: "accessibility - material (4/4)", theme: "material.blue.light", indices: "4/4" },
90+
{ componentFolder: "accessibility", name: "accessibility - fluent (1/4)", theme: "fluent.blue.light", indices: "1/4" },
91+
{ componentFolder: "accessibility", name: "accessibility - fluent (2/4)", theme: "fluent.blue.light", indices: "2/4" },
92+
{ componentFolder: "accessibility", name: "accessibility - fluent (3/4)", theme: "fluent.blue.light", indices: "3/4" },
93+
{ componentFolder: "accessibility", name: "accessibility - fluent (4/4)", theme: "fluent.blue.light", indices: "4/4" },
10394
{ componentFolder: "common", name: "common" },
10495
{ componentFolder: "common", name: "common - material", theme: 'material.blue.light' },
10596
{ componentFolder: "common", name: "common - fluent", theme: 'fluent.blue.light' },

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ const options: Options<Properties> = {
1313
dataSource: [items],
1414
disabled: [true, false],
1515
deferRendering: [true, false],
16-
hint: [undefined, 'hint'],
1716
multiple: [true, false],
1817
focusStateEnabled: [true],
1918
};

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ const items = [
1616

1717
const options: Options<Properties> = {
1818
dataSource: [[], items],
19-
hint: [undefined, 'hint'],
2019
title: [undefined, 'title'],
2120
cancelText: [undefined, 'Cancel'],
2221
showTitle: [true, false],
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
import { Properties } from 'devextreme/ui/autocomplete.d';
2+
import url from '../../helpers/getPageUrl';
3+
import { testAccessibility, Configuration } from '../../helpers/accessibility/test';
4+
import { Options } from '../../helpers/generateOptionMatrix';
5+
6+
fixture.disablePageReloads`Accessibility`
7+
.page(url(__dirname, '../container.html'));
8+
9+
const items = ['Item_1', 'Item_2', 'Item_3'];
10+
11+
const options: Options<Properties> = {
12+
dataSource: [[], items],
13+
placeholder: [undefined, 'placeholder'],
14+
value: [undefined, 'Item_1'],
15+
disabled: [true, false],
16+
readOnly: [true, false],
17+
searchTimeout: [0],
18+
inputAttr: [{ 'aria-label': 'aria-label' }],
19+
};
20+
21+
const buttonsOptions: Options<Properties> = {
22+
dataSource: [[], items],
23+
value: ['Item_1'],
24+
label: [undefined, 'label'],
25+
inputAttr: [{ 'aria-label': 'aria-label' }],
26+
};
27+
28+
const a11yCheckConfig = {
29+
rules: {
30+
// NOTE: color-contrast issues
31+
'color-contrast': { enabled: false },
32+
},
33+
};
34+
35+
const deferredConfiguration: Configuration = {
36+
component: 'dxAutocomplete',
37+
a11yCheckConfig,
38+
options: {
39+
...options,
40+
opened: [true, false],
41+
deferRendering: [true],
42+
},
43+
};
44+
45+
testAccessibility(deferredConfiguration);
46+
47+
const noDeferredConfiguration: Configuration = {
48+
component: 'dxAutocomplete',
49+
a11yCheckConfig,
50+
options: {
51+
...options,
52+
opened: [false],
53+
deferRendering: [false],
54+
},
55+
};
56+
57+
testAccessibility(noDeferredConfiguration);
58+
59+
const standardButtonsConfiguration: Configuration = {
60+
component: 'dxAutocomplete',
61+
a11yCheckConfig,
62+
options: {
63+
...buttonsOptions,
64+
showClearButton: [true, false],
65+
showDropDownButton: [true, false],
66+
},
67+
};
68+
69+
testAccessibility(standardButtonsConfiguration);
70+
71+
const customButtonsConfiguration: Configuration = {
72+
component: 'dxAutocomplete',
73+
a11yCheckConfig,
74+
options: {
75+
...buttonsOptions,
76+
buttons: [
77+
[
78+
{
79+
name: 'today',
80+
location: 'before',
81+
options: {
82+
text: 'Today',
83+
stylingMode: 'text',
84+
onClick: () => {},
85+
},
86+
},
87+
],
88+
],
89+
},
90+
};
91+
92+
testAccessibility(customButtonsConfiguration);

e2e/testcafe-devextreme/tests/accessibility/autocomplete/buttonsAndLabels.ts

Lines changed: 0 additions & 47 deletions
This file was deleted.

e2e/testcafe-devextreme/tests/accessibility/autocomplete/common.ts

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)