@@ -16,14 +16,12 @@ import {
1616 shouldSkipDemo ,
1717 FRAMEWORKS ,
1818} from '../utils/visual-tests/matrix-test-helper' ;
19- import {
20- getThemePostfix ,
21- THEME ,
22- } from '../utils/visual-tests/helpers/theme-utils' ;
23-
19+ import { getThemePostfix } from '../utils/visual-tests/helpers/theme-utils' ;
2420import { createMdReport , createTestCafeReport } from '../utils/axe-reporter/reporter' ;
25- import knownWarnings from './known-warnings.json' ;
26- import skipJsErrorsComponents from './skip-js-errors-components.json' ;
21+ import { accessibilityUnsupportedComponents } from './accessibility-unsupported-components' ;
22+ import { knownWarnings } from './known-warnings' ;
23+ import { skipJsErrorsComponents } from './skip-js-errors-components' ;
24+ import { skippedTests } from './skipped-tests' ;
2725
2826import { gitHubIgnored } from '../utils/visual-tests/github-ignored-list' ;
2927
@@ -62,246 +60,6 @@ const getTestSpecificSkipRules = (testName) => {
6260 }
6361} ;
6462
65- const SKIPPED_TESTS = {
66- jQuery : {
67- Charts : [
68- { demo : 'ServerSideDataProcessing' , themes : [ THEME . material ] } ,
69- { demo : 'SpiderWeb' , themes : [ THEME . material ] } , // NOTE: Requires preload font, which not work in testcafe
70- ] ,
71- Gantt : [
72- { demo : 'TaskTemplate' , themes : [ THEME . generic , THEME . material , THEME . fluent ] } ,
73- { demo : 'Validation' , themes : [ THEME . generic , THEME . material , THEME . fluent ] } ,
74- ] ,
75- Map : [
76- { demo : 'ProvidersAndTypes' , themes : [ THEME . generic , THEME . material , THEME . fluent ] } ,
77- { demo : 'Markers' , themes : [ THEME . generic , THEME . material , THEME . fluent ] } ,
78- { demo : 'Routes' , themes : [ THEME . generic , THEME . material , THEME . fluent ] } ,
79- ] ,
80- } ,
81- Angular : {
82- DataGrid : [
83- { demo : 'EditStateManagement' , themes : [ THEME . generic ] } ,
84- { demo : 'MultipleRecordSelectionModes' , themes : [ THEME . fluent ] } ,
85- { demo : 'Toolbar' , themes : [ THEME . fluent , THEME . material ] } ,
86- { demo : 'SignalRService' , themes : [ THEME . fluent , THEME . material ] } ,
87- { demo : 'CellEditing' , themes : [ THEME . material ] } ,
88- { demo : 'MultipleRecordSelectionAPI' , themes : [ THEME . material ] } ,
89- { demo : 'RemoteGrouping' , themes : [ THEME . generic ] } ,
90- ] ,
91- Charts : [
92- { demo : 'Overview' , themes : [ THEME . material ] } ,
93- { demo : 'Strips' , themes : [ THEME . material ] } ,
94- { demo : 'Bubble' , themes : [ THEME . material ] } ,
95- { demo : 'PointImage' , themes : [ THEME . material ] } ,
96- { demo : 'BiDirectionalBarChart' , themes : [ THEME . material ] } ,
97- { demo : 'CustomizePointsAndLabels' , themes : [ THEME . material ] } ,
98- { demo : 'ClientSideDataProcessing' , themes : [ THEME . material ] } ,
99- { demo : 'ServerSideDataProcessing' , themes : [ THEME . material ] } ,
100- { demo : 'MultiplePointSelection' , themes : [ THEME . material ] } ,
101- { demo : 'EqualSizePies' , themes : [ THEME . material ] } ,
102- { demo : 'Selection' , themes : [ THEME . material ] } ,
103- { demo : 'CustomMapData' , themes : [ THEME . material ] } ,
104- { demo : 'MultipleSeriesSelection' , themes : [ THEME . material ] } ,
105- { demo : 'DiscreteAxisZoomingAndScrolling' , themes : [ THEME . material ] } ,
106- { demo : 'PointSelectionAPI' , themes : [ THEME . material ] } ,
107- { demo : 'SpiderWeb' , themes : [ THEME . material ] } , // NOTE: Requires preload font, which not work in testcafe
108- ] ,
109- Map : [
110- { demo : 'ProvidersAndTypes' , themes : [ THEME . generic , THEME . material , THEME . fluent ] } ,
111- { demo : 'Markers' , themes : [ THEME . generic , THEME . material , THEME . fluent ] } ,
112- { demo : 'Routes' , themes : [ THEME . generic , THEME . material , THEME . fluent ] } ,
113- ] ,
114- Scheduler : [
115- { demo : 'Overview' , themes : [ THEME . fluent , THEME . material ] } ,
116- ] ,
117- PivotGrid : [
118- { demo : 'Overview' , themes : [ THEME . material ] } ,
119- { demo : 'ChartIntegration' , themes : [ THEME . material ] } ,
120- ] ,
121- TreeList : [
122- { demo : 'BatchEditing' , themes : [ THEME . material ] } ,
123- { demo : 'RowEditing' , themes : [ THEME . material ] } ,
124- { demo : 'PopupEditing' , themes : [ THEME . material ] } ,
125- { demo : 'FormEditing' , themes : [ THEME . material ] } ,
126- { demo : 'CellEditing' , themes : [ THEME . material ] } ,
127- { demo : 'Resizing' , themes : [ THEME . material ] } ,
128- ] ,
129- Gauges : [
130- { demo : 'ScaleLabelFormatting' , themes : [ THEME . material ] } ,
131- { demo : 'RangeBarBaseValue' , themes : [ THEME . material ] } ,
132- { demo : 'DifferentValueIndicatorTypesLinearGauge' , themes : [ THEME . material ] } ,
133- { demo : 'SubvalueIndicatorTextFormatting' , themes : [ THEME . material ] } ,
134- { demo : 'DifferentValueIndicatorTypes' , themes : [ THEME . material ] } ,
135- ] ,
136- RangeSelector : [
137- { demo : 'DiscreteScale' , themes : [ THEME . material ] } ,
138- ] ,
139- Gantt : [
140- { demo : 'ContextMenu' , themes : [ THEME . material ] } ,
141- { demo : 'TaskTemplate' , themes : [ THEME . generic , THEME . material , THEME . fluent ] } ,
142- { demo : 'Validation' , themes : [ THEME . generic , THEME . material , THEME . fluent ] } ,
143- ] ,
144- VectorMap : [
145- { demo : 'Palette' , themes : [ THEME . material ] } ,
146- { demo : 'Overview' , themes : [ THEME . material ] } ,
147- { demo : 'PieMarkers' , themes : [ THEME . material ] } ,
148- { demo : 'Legend' , themes : [ THEME . material ] } ,
149- { demo : 'CustomAnnotations' , themes : [ THEME . material ] } ,
150- { demo : 'CustomProjection' , themes : [ THEME . material ] } ,
151- { demo : 'MultipleLayers' , themes : [ THEME . material ] } ,
152- { demo : 'TooltipsCustomization' , themes : [ THEME . material ] } ,
153- { demo : 'CustomMapData' , themes : [ THEME . material ] } ,
154- ] ,
155- } ,
156- React : {
157- Charts : [
158- { demo : 'EqualSizePies' , themes : [ THEME . material ] } ,
159- { demo : 'CustomAnnotations' , themes : [ THEME . material ] } ,
160- { demo : 'ClientSideDataProcessing' , themes : [ THEME . material ] } ,
161- { demo : 'ServerSideDataProcessing' , themes : [ THEME . material ] } ,
162- { demo : 'SubvalueIndicatorTextFormatting' , themes : [ THEME . material ] } ,
163- { demo : 'SpiderWeb' , themes : [ THEME . material ] } , // NOTE: Requires preload font, which not work in testcafe
164- ] ,
165- DataGrid : [
166- { demo : 'SignalRService' , themes : [ THEME . material , THEME . fluent ] } ,
167- { demo : 'EditStateManagement' , themes : [ THEME . material ] } ,
168- { demo : 'MultipleRecordSelectionModes' , themes : [ THEME . fluent ] } ,
169- { demo : 'Toolbar' , themes : [ THEME . fluent , THEME . material ] } ,
170- { demo : 'MultipleRecordSelectionAPI' , themes : [ THEME . material ] } ,
171- { demo : 'CellEditing' , themes : [ THEME . material ] } ,
172- ] ,
173- TreeList : [
174- { demo : 'Resizing' , themes : [ THEME . material ] } ,
175- { demo : 'Overview' , themes : [ THEME . material ] } ,
176- ] ,
177- Gantt : [
178- { demo : 'Validation' , themes : [ THEME . generic , THEME . material , THEME . fluent ] } ,
179- { demo : 'ContextMenu' , themes : [ THEME . material ] } ,
180- ] ,
181- Scheduler : [
182- { demo : 'Overview' , themes : [ THEME . fluent , THEME . material ] } ,
183- { demo : 'GroupByDate' , themes : [ THEME . fluent , THEME . material ] } ,
184- ] ,
185- List : [
186- { demo : 'Search' , themes : [ THEME . material ] } ,
187- { demo : 'DragAndDrop' , themes : [ THEME . fluent , THEME . material ] } ,
188- ] ,
189- Map : [
190- { demo : 'ProvidersAndTypes' , themes : [ THEME . generic , THEME . material , THEME . fluent ] } ,
191- { demo : 'Markers' , themes : [ THEME . generic , THEME . material , THEME . fluent ] } ,
192- { demo : 'Routes' , themes : [ THEME . generic , THEME . material , THEME . fluent ] } ,
193- ] ,
194- VectorMap : [
195- { demo : 'Overview' , themes : [ THEME . material ] } ,
196- { demo : 'PieMarkers' , themes : [ THEME . material ] } ,
197- { demo : 'CustomAnnotations' , themes : [ THEME . material ] } ,
198- { demo : 'CustomMapData' , themes : [ THEME . material ] } ,
199- { demo : 'CustomProjection' , themes : [ THEME . material ] } ,
200- { demo : 'Legend' , themes : [ THEME . material ] } ,
201- { demo : 'MultipleLayers' , themes : [ THEME . material ] } ,
202- { demo : 'Palette' , themes : [ THEME . material ] } ,
203- { demo : 'TooltipsCustomization' , themes : [ THEME . material ] } ,
204- ] ,
205- RangeSelector : [
206- { demo : 'DiscreteScale' , themes : [ THEME . material ] } ,
207- { demo : 'Calculation' , themes : [ THEME . material ] } ,
208- ] ,
209- PivotGrid : [
210- { demo : 'ExcelJSCellCustomization' , themes : [ THEME . material ] } ,
211- { demo : 'Customization' , themes : [ THEME . material ] } ,
212- ] ,
213- Gauges : [
214- { demo : 'SubvalueIndicatorTextFormatting' , themes : [ THEME . material ] } ,
215- { demo : 'SubvalueIndicatorsRuntimeCustomization' , themes : [ THEME . material ] } ,
216- { demo : 'DifferentValueIndicatorTypesLinearGauge' , themes : [ THEME . material ] } ,
217- { demo : 'ScaleLabelFormatting' , themes : [ THEME . material ] } ,
218- ] ,
219- } ,
220- Vue : {
221- Charts : [
222- { demo : 'TilingAlgorithms' , themes : [ THEME . material ] } ,
223- { demo : 'ExportAndPrintingAPI' , themes : [ THEME . material ] } ,
224- { demo : 'DiscreteAxisZoomingAndScrolling' , themes : [ THEME . material ] } ,
225- { demo : 'Line' , themes : [ THEME . material ] } ,
226- { demo : 'Spline' , themes : [ THEME . material ] } ,
227- { demo : 'Colorization' , themes : [ THEME . material ] } ,
228- { demo : 'SignalRService' , themes : [ THEME . material ] } ,
229- { demo : 'PointsAggregation' , themes : [ THEME . material ] } ,
230- { demo : 'SubvalueIndicatorTextFormatting' , themes : [ THEME . material ] } ,
231- { demo : 'ResolveLabelOverlap' , themes : [ THEME . material ] } ,
232- { demo : 'ClientSideDataProcessing' , themes : [ THEME . material ] } ,
233- { demo : 'ServerSideDataProcessing' , themes : [ THEME . material ] } ,
234- { demo : 'EqualSizePies' , themes : [ THEME . material ] } ,
235- { demo : 'Palette' , themes : [ THEME . material ] } ,
236- { demo : 'SpiderWeb' , themes : [ THEME . material ] } , // NOTE: Requires preload font, which not work in testcafe
237- ] ,
238- DataGrid : [
239- { demo : 'SignalRService' , themes : [ THEME . fluent , THEME . material ] } ,
240- { demo : 'EditStateManagement' , themes : [ THEME . material ] } ,
241- { demo : 'Toolbar' , themes : [ THEME . fluent , THEME . material ] } ,
242- { demo : 'MultipleRecordSelectionModes' , themes : [ THEME . fluent ] } ,
243- { demo : 'FilteringAPI' , themes : [ THEME . material ] } ,
244- { demo : 'Filtering' , themes : [ THEME . fluent ] } ,
245- { demo : 'MultipleRecordSelectionAPI' , themes : [ THEME . material ] } ,
246- { demo : 'DeferredSelection' , themes : [ THEME . material ] } ,
247- { demo : 'CellEditing' , themes : [ THEME . material ] } ,
248- { demo : 'PopupEditing' , themes : [ THEME . generic ] } ,
249- { demo : 'RecordPaging' , themes : [ THEME . generic ] } ,
250- ] ,
251- FileManager : [
252- { demo : 'BindingToFileSystem' , themes : [ THEME . material ] } ,
253- { demo : 'CustomThumbnails' , themes : [ THEME . generic ] } ,
254- ] ,
255- FilterBuilder : [
256- { demo : 'Customization' , themes : [ THEME . material ] } ,
257- ] ,
258- TreeList : [
259- { demo : 'Overview' , themes : [ THEME . material ] } ,
260- { demo : 'MultipleRowSelection' , themes : [ THEME . material ] } ,
261- { demo : 'Resizing' , themes : [ THEME . material ] } ,
262- ] ,
263- Map : [
264- { demo : 'ProvidersAndTypes' , themes : [ THEME . generic , THEME . material , THEME . fluent ] } ,
265- { demo : 'Markers' , themes : [ THEME . generic , THEME . material , THEME . fluent ] } ,
266- { demo : 'Routes' , themes : [ THEME . generic , THEME . material , THEME . fluent ] } ,
267- ] ,
268- Gauges : [
269- { demo : 'Overview' , themes : [ THEME . material ] } ,
270- { demo : 'SubvalueIndicatorsRuntimeCustomization' , themes : [ THEME . material ] } ,
271- { demo : 'ScaleLabelFormatting' , themes : [ THEME . material ] } ,
272- { demo : 'SubvalueIndicatorTextFormatting' , themes : [ THEME . material ] } ,
273- { demo : 'DifferentValueIndicatorTypes' , themes : [ THEME . material ] } ,
274- { demo : 'DifferentValueIndicatorTypesLinearGauge' , themes : [ THEME . material ] } ,
275- ] ,
276- RangeSelector : [
277- { demo : 'Calculation' , themes : [ THEME . material ] } ,
278- { demo : 'DiscreteScale' , themes : [ THEME . material ] } ,
279- ] ,
280- PivotGrid : [
281- { demo : 'Overview' , themes : [ THEME . material ] } ,
282- { demo : 'Customization' , themes : [ THEME . material ] } ,
283- ] ,
284- VectorMap : [
285- { demo : 'CustomProjection' , themes : [ THEME . material ] } ,
286- { demo : 'Spline' , themes : [ THEME . material ] } ,
287- { demo : 'CustomAnnotations' , themes : [ THEME . material ] } ,
288- { demo : 'Palette' , themes : [ THEME . material ] } ,
289- { demo : 'Overview' , themes : [ THEME . material ] } ,
290- { demo : 'PieMarkers' , themes : [ THEME . material ] } ,
291- { demo : 'TooltipsCustomization' , themes : [ THEME . material ] } ,
292- { demo : 'MultipleLayers' , themes : [ THEME . material ] } ,
293- { demo : 'CustomMapData' , themes : [ THEME . material ] } ,
294- { demo : 'Legend' , themes : [ THEME . material ] } ,
295- ] ,
296- Gantt : [
297- { demo : 'ContextMenu' , themes : [ THEME . material ] } ,
298- { demo : 'Validation' , themes : [ THEME . generic , THEME . material , THEME . fluent ] } ,
299- { demo : 'TaskTemplate' , themes : [ THEME . generic , THEME . material , THEME . fluent ] } ,
300- ] ,
301- Pagination : [ 'Overview' ] ,
302- } ,
303- } ;
304-
30563FRAMEWORKS . forEach ( ( approach ) => {
30664 if ( ! shouldRunFramework ( approach ) ) { return ; }
30765 fixture ( approach )
@@ -327,16 +85,6 @@ FRAMEWORKS.forEach((approach) => {
32785
32886 const getDemoPaths = ( platform ) => glob . sync ( 'Demos/*/*' )
32987 . map ( ( path ) => join ( path , platform ) ) ;
330- const ACCESSIBILITY_UNSUPPORTED_COMPONENTS = [
331- 'Accordion' ,
332- 'Charts' ,
333- 'Diagram' ,
334- 'FileManager' ,
335- 'Gantt' ,
336- 'Map' ,
337- 'Scheduler' ,
338- 'PivotGrid' ,
339- ] ;
34088
34189 getDemoPaths ( approach ) . forEach ( ( demoPath , index ) => {
34290 if ( ! shouldRunTestAtIndex ( index + 1 ) || ! existsSync ( demoPath ) ) { return ; }
@@ -362,7 +110,7 @@ FRAMEWORKS.forEach((approach) => {
362110 ...visualTestSettings [ approachLowerCase ] ,
363111 } ) || { } ;
364112
365- if ( process . env . STRATEGY === 'accessibility' && ACCESSIBILITY_UNSUPPORTED_COMPONENTS . indexOf ( widgetName ) > - 1 ) {
113+ if ( process . env . STRATEGY === 'accessibility' && accessibilityUnsupportedComponents . indexOf ( widgetName ) > - 1 ) {
366114 return ;
367115 }
368116 if ( process . env . CI_ENV && process . env . DISABLE_DEMO_TEST_SETTINGS !== 'ignore' ) {
@@ -387,7 +135,7 @@ FRAMEWORKS.forEach((approach) => {
387135 return ;
388136 }
389137
390- if ( shouldSkipDemo ( approach , widgetName , demoName , SKIPPED_TESTS ) ) {
138+ if ( shouldSkipDemo ( approach , widgetName , demoName , skippedTests ) ) {
391139 return ;
392140 }
393141
0 commit comments