Skip to content

Commit 815c43b

Browse files
r-farkhutdinovRuslan Farkhutdinov
andauthored
Fix flaky Chat & SelectBox tests & skip Chart & DataGrid tests (DevExpress#29102)
Co-authored-by: Ruslan Farkhutdinov <[email protected]>
1 parent 2aa1087 commit 815c43b

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

apps/demos/utils/visual-tests/matrix-test-helper.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ export function shouldRunFramework(currentFramework) {
166166

167167
export function shouldRunTestAtIndex(testIndex) {
168168
return (settings.current === settings.total ? 0 : settings.current)
169-
=== ((testIndex % settings.total) || 0);
169+
=== ((testIndex % settings.total) || 0);
170170
}
171171

172172
const SKIPPED_TESTS = {
@@ -193,6 +193,7 @@ const SKIPPED_TESTS = {
193193
{ demo: 'Overview', themes: [THEME.material] },
194194
{ demo: 'ZoomingAndScrollingAPI', themes: [THEME.material] },
195195
{ demo: 'TooltipHTMLSupport', themes: [THEME.material] },
196+
{ demo: 'PieWithResolvedLabelOverlapping', themes: [THEME.generic, THEME.material, THEME.fluent] },
196197
],
197198
VectorMap: [
198199
{ demo: 'TooltipHTMLSupport', themes: [THEME.material] },
@@ -222,6 +223,8 @@ const SKIPPED_TESTS = {
222223
{ demo: 'ZoomingOnAreaSelection', themes: [THEME.material] },
223224
{ demo: 'CustomLegendMarkers', themes: [THEME.material] },
224225
{ demo: 'DialogsAndNotificationsOverview', themes: [THEME.material] },
226+
{ demo: 'Crosshair', themes: [THEME.material] },
227+
225228
],
226229
VectorMap: [
227230
{ demo: 'TooltipHTMLSupport', themes: [THEME.material] },
@@ -236,11 +239,18 @@ const SKIPPED_TESTS = {
236239
{ demo: 'RowEditingAndEditingEvents', themes: [THEME.fluent, THEME.material] },
237240
{ demo: 'EditStateManagement', themes: [THEME.fluent, THEME.material] },
238241
{ demo: 'FilteringAPI', themes: [THEME.material] },
242+
{ demo: 'PopupEditing', themes: [THEME.generic] },
239243
'StatePersistence',
240244
],
241245
Drawer: [
242246
{ demo: 'TopOrBottomPosition', themes: [THEME.material] },
243247
],
248+
Toolbar: [
249+
{ demo: 'Adaptability', themes: [THEME.generic, THEME.material, THEME.fluent] },
250+
],
251+
Accordion: [
252+
{ demo: 'Overview', themes: [THEME.generic, THEME.material, THEME.fluent] },
253+
],
244254
},
245255
React: {
246256
Charts: [
@@ -285,7 +295,7 @@ export function shouldSkipDemo(framework, component, demoName, skippedTests) {
285295
if (typeof test === 'string' && test === demoName) {
286296
return true;
287297
} if (test.demo === demoName
288-
&& test.themes.includes(process.env.THEME || THEME.generic)) {
298+
&& test.themes.includes(process.env.THEME || THEME.generic)) {
289299
return true;
290300
}
291301
}
@@ -327,7 +337,7 @@ export function runManualTestCore(testObject, widget, demo, framework, callback)
327337

328338
const index = settings.manualTestIndex;
329339
settings.manualTestIndex += 1;
330-
340+
331341
if (!shouldRunTest(framework, index, widget, demo, SKIPPED_TESTS)) {
332342
return;
333343
}

0 commit comments

Comments
 (0)