Skip to content

Commit 51620b1

Browse files
author
marker dao ®
committed
feat(matrix): Unskip && Set t.wait
1 parent 782f49f commit 51620b1

File tree

9 files changed

+66
-50
lines changed

9 files changed

+66
-50
lines changed

apps/demos/testing/widgets/chat/Customization.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ runManualTest('Chat', 'Customization', ['jQuery', 'React', 'Vue', 'Angular'], (t
1818
test('Customization', async (t) => {
1919
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);
2020

21-
await t.wait(500);
21+
await t.wait(1000);
2222

2323
await t
2424
.click(Selector(`.${SELECTBOX_CLASS}`).nth(0))

apps/demos/testing/widgets/common/EditorAppearanceVariants.test.js

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ runManualTest('Common', 'EditorAppearanceVariants', ['jQuery', 'React', 'Vue', '
1414
test('EditorAppearanceVariants', async (t) => {
1515
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);
1616

17+
await t.wait(1000);
18+
1719
const SELECTBOX_CLASS = 'dx-selectbox';
1820
const stylingModes = ['outlined', 'filled', 'underlined'];
1921
const labelModes = ['static', 'floating', 'hidden', 'outside'];

apps/demos/testing/widgets/dropdownbutton/DropDownButton.test.js

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ runManualTest('DropDownButton', 'Overview', ['jQuery', 'React', 'Vue', 'Angular'
1616
test('Custom Overview Appearance', async (t) => {
1717
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);
1818

19+
await t.wait(1000);
20+
1921
await t
2022
.click($(`.${DROP_DOWN_BUTTON_CLASS}`).nth(0))
2123
.wait(200);

apps/demos/testing/widgets/gauges/GaugeVariableNumberBars.test.js

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ runManualTest('Gauges', 'VariableNumberOfBars', ['jQuery', 'React', 'Vue', 'Angu
1313
test('Bars visibility changing', async (t) => {
1414
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);
1515

16+
await t.wait(1000);
17+
1618
const checkBoxes = $('.dx-checkbox-icon');
1719

1820
await t.click(checkBoxes.nth(2));

apps/demos/testing/widgets/popup/Scrolling.test.js

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ runManualTest('Popup', 'Scrolling', ['jQuery', 'React', 'Vue', 'Angular'], (test
1818
test('Scrolling', async (t) => {
1919
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);
2020

21+
await t.wait(1000);
22+
2123
await t.click(Selector(`.${BUTTON_CLASS}`).nth(0));
2224
await testScreenshot(t, takeScreenshot, 'popup with scrollable container.png');
2325

apps/demos/testing/widgets/selectbox/GroupedItems.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ runManualTest('SelectBox', 'GroupedItems', ['jQuery', 'React', 'Vue', 'Angular']
1414
const SELECT_BOX_CLASS = 'dx-selectbox';
1515
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);
1616

17-
await t.wait(500);
17+
await t.wait(1000);
1818

1919
await t
2020
.click($(`.${SELECT_BOX_CLASS}`).nth(0))

apps/demos/testing/widgets/sortable/kanban.test.js

+6
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ runManualTest('Sortable', 'Kanban', ['jQuery', 'React', 'Vue', 'Angular'], (test
1818
test('Drag-n-drop kanban columns', async (t) => {
1919
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);
2020

21+
await t.wait(1000);
22+
2123
await t.drag(Selector(CLASSES.listTitle).nth(0), 600, 50, { speed: 0.5 });
2224
await testScreenshot(t, takeScreenshot, 'kanban_list_drag-n-drop.png');
2325

@@ -30,6 +32,8 @@ runManualTest('Sortable', 'Kanban', ['jQuery', 'React', 'Vue', 'Angular'], (test
3032
test('Drag-n-drop card inside the same column', async (t) => {
3133
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);
3234

35+
await t.wait(1000);
36+
3337
await t.drag(Selector(CLASSES.card).nth(3), 25, 200, { speed: 0.5 });
3438
await testScreenshot(t, takeScreenshot, 'kanban_card_drag-n-drop_same-column.png');
3539

@@ -42,6 +46,8 @@ runManualTest('Sortable', 'Kanban', ['jQuery', 'React', 'Vue', 'Angular'], (test
4246
test('Drag-n-drop card to a different column', async (t) => {
4347
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);
4448

49+
await t.wait(1000);
50+
4551
await t.drag(Selector(CLASSES.card).nth(3), 300, 150, { speed: 0.5 });
4652
await testScreenshot(t, takeScreenshot, 'kanban_card_drag-n-drop_different-column.png');
4753

apps/demos/testing/widgets/splitter/Overview.test.js

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ runManualTest('Splitter', 'Overview', ['jQuery', 'React', 'Vue', 'Angular'], (te
1515
test('Correct Focus styles on every Item Panes', async (t) => {
1616
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);
1717

18+
await t.wait(1000);
19+
1820
await t
1921
.click($(`.${PANE_CONTENT_CLASS}`).nth(0));
2022

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

+48-48
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const waitForAngularLoading = ClientFunction(() => new Promise((resolve)
4141
let demoAppCounter = 0;
4242
const demoAppIntervalHandle = setInterval(() => {
4343
const demoApp = document.querySelector('demo-app');
44-
if ((demoApp && demoApp.innerText !== 'Loading...') || demoAppCounter === 150) {
44+
if ((demoApp && demoApp.innerText !== 'Loading...') || demoAppCounter === 120) {
4545
setTimeout(resolve, 1000);
4646
clearInterval(demoAppIntervalHandle);
4747
}
@@ -195,85 +195,85 @@ const SKIPPED_TESTS = {
195195
Accordion: [
196196
{ demo: 'Overview', themes: [THEME.generic, THEME.material, THEME.fluent] },
197197
],
198-
DropDownButton: [
199-
{ demo: 'Overview', themes: [THEME.generic, THEME.material, THEME.fluent] },
200-
],
201-
SelectBox: [
202-
{ demo: 'GroupedItems', themes: [THEME.generic, THEME.material, THEME.fluent] },
203-
],
204-
Splitter: [
205-
{ demo: 'Overview', themes: [THEME.generic, THEME.material, THEME.fluent] },
206-
],
207-
Gauges: [
208-
{ demo: 'VariableNumberOfBars', themes: [THEME.generic, THEME.material, THEME.fluent] },
209-
],
210198
Charts: [
211-
{ demo: 'Overview', themes: [THEME.material] },
212199
{ demo: 'Crosshair', themes: [THEME.generic, THEME.material, THEME.fluent] },
213200
{ demo: 'CustomAnnotations', themes: [THEME.generic, THEME.material, THEME.fluent] },
214-
{ demo: 'LoadDataOnDemand', themes: [THEME.generic, THEME.material, THEME.fluent] },
215201
{ demo: 'CustomLegendMarkers', themes: [THEME.generic, THEME.material, THEME.fluent] },
216-
{ demo: 'PieWithResolvedLabelOverlapping', themes: [THEME.generic, THEME.material, THEME.fluent] },
217-
{ demo: 'ZoomingAndScrollingAPI', themes: [THEME.generic, THEME.material, THEME.fluent] },
218-
{ demo: 'ZoomingOnAreaSelection', themes: [THEME.generic, THEME.material, THEME.fluent] },
219-
{ demo: 'TooltipHTMLSupport', themes: [THEME.material] },
220202
{ demo: 'Export', themes: [THEME.generic, THEME.material, THEME.fluent] },
221203
{ demo: 'ExportCustomMarkup', themes: [THEME.generic, THEME.material, THEME.fluent] },
204+
{ demo: 'LoadDataOnDemand', themes: [THEME.generic, THEME.material, THEME.fluent] },
205+
{ demo: 'Overview', themes: [THEME.material] },
206+
{ demo: 'PieWithResolvedLabelOverlapping', themes: [THEME.generic, THEME.material, THEME.fluent] },
222207
{ demo: 'PopupEditing', themes: [THEME.generic, THEME.material, THEME.fluent] },
223-
],
224-
VectorMap: [
225208
{ demo: 'TooltipHTMLSupport', themes: [THEME.material] },
226-
{ demo: 'DynamicViewport', themes: [THEME.generic, THEME.material, THEME.fluent] },
209+
{ demo: 'ZoomingAndScrollingAPI', themes: [THEME.generic, THEME.material, THEME.fluent] },
210+
{ demo: 'ZoomingOnAreaSelection', themes: [THEME.generic, THEME.material, THEME.fluent] },
227211
],
228212
DataGrid: [
229-
{ demo: 'Appearance', themes: [THEME.generic, THEME.material, THEME.fluent] },
230213
{ demo: 'AdvancedMasterDetailView', themes: [THEME.generic, THEME.material, THEME.fluent] },
231-
{ demo: 'BatchEditing', themes: [THEME.generic, THEME.material, THEME.fluent] },
232214
{ demo: 'AjaxRequest', themes: [THEME.generic, THEME.material, THEME.fluent] },
233-
{ demo: 'InfiniteScrolling', themes: [THEME.generic, THEME.material, THEME.fluent] },
234-
{ demo: 'MasterDetailView', themes: [THEME.generic, THEME.material, THEME.fluent] },
235-
{ demo: 'SimpleArray', themes: [THEME.generic, THEME.material, THEME.fluent] },
236-
{ demo: 'MasterDetailAPI', themes: [THEME.generic, THEME.material, THEME.fluent] },
237-
{ demo: 'DataValidation', themes: [THEME.generic, THEME.material, THEME.fluent] },
238-
{ demo: 'MultipleSorting', themes: [THEME.generic, THEME.material, THEME.fluent] },
239-
{ demo: 'OdataService', themes: [THEME.generic, THEME.material, THEME.fluent] },
215+
{ demo: 'Appearance', themes: [THEME.generic, THEME.material, THEME.fluent] },
216+
{ demo: 'BatchEditing', themes: [THEME.generic, THEME.material, THEME.fluent] },
217+
{ demo: 'CellEditingAndEditingAPI', themes: [THEME.generic, THEME.fluent, THEME.material] },
240218
{ demo: 'CustomNewRecordPosition', themes: [THEME.generic, THEME.material, THEME.fluent] },
219+
{ demo: 'DataValidation', themes: [THEME.generic, THEME.material, THEME.fluent] },
220+
{ demo: 'EditStateManagement', themes: [THEME.generic, THEME.fluent, THEME.material] },
241221
{ demo: 'Filtering', themes: [THEME.generic, THEME.material, THEME.fluent] },
242222
{ demo: 'FilteringAPI', themes: [THEME.generic, THEME.material, THEME.fluent] },
243223
{ demo: 'GroupSummaries', themes: [THEME.generic, THEME.material, THEME.fluent] },
244-
{ demo: 'RecordPaging', themes: [THEME.generic, THEME.material, THEME.fluent] },
245-
{ demo: 'RowSelection', themes: [THEME.generic, THEME.material, THEME.fluent] },
246-
{ demo: 'MultipleSelection', themes: [THEME.material, THEME.fluent] },
247-
{ demo: 'CellEditingAndEditingAPI', themes: [THEME.generic, THEME.fluent, THEME.material] },
224+
{ demo: 'InfiniteScrolling', themes: [THEME.generic, THEME.material, THEME.fluent] },
225+
{ demo: 'MasterDetailAPI', themes: [THEME.generic, THEME.material, THEME.fluent] },
226+
{ demo: 'MasterDetailView', themes: [THEME.generic, THEME.material, THEME.fluent] },
248227
{ demo: 'MultipleRecordSelectionAPI', themes: [THEME.generic, THEME.fluent, THEME.material] },
228+
{ demo: 'MultipleSelection', themes: [THEME.material, THEME.fluent] },
229+
{ demo: 'MultipleSorting', themes: [THEME.generic, THEME.material, THEME.fluent] },
230+
{ demo: 'OdataService', themes: [THEME.generic, THEME.material, THEME.fluent] },
231+
{ demo: 'RecordGrouping', themes: [THEME.generic, THEME.material, THEME.fluent] },
232+
{ demo: 'RecordPaging', themes: [THEME.generic, THEME.material, THEME.fluent] },
249233
{ demo: 'RemoteGrouping', themes: [THEME.generic, THEME.fluent, THEME.material] },
250234
{ demo: 'RowEditingAndEditingEvents', themes: [THEME.generic, THEME.fluent, THEME.material] },
251-
{ demo: 'EditStateManagement', themes: [THEME.generic, THEME.fluent, THEME.material] },
252-
{ demo: 'RecordGrouping', themes: [THEME.generic, THEME.material, THEME.fluent] },
235+
{ demo: 'RowSelection', themes: [THEME.generic, THEME.material, THEME.fluent] },
236+
{ demo: 'SimpleArray', themes: [THEME.generic, THEME.material, THEME.fluent] },
253237
{ demo: 'ToolbarCustomization', themes: [THEME.generic, THEME.material, THEME.fluent] },
254238
],
239+
// DropDownButton: [
240+
// { demo: 'Overview', themes: [THEME.generic, THEME.material, THEME.fluent] },
241+
// ],
255242
Form: [
256243
'CustomizeItem',
257244
{ demo: 'Validation', themes: [THEME.material] },
258245
],
246+
// Gauges: [
247+
// { demo: 'VariableNumberOfBars', themes: [THEME.generic, THEME.material, THEME.fluent] },
248+
// ],
249+
PivotGrid: [
250+
{ demo: 'IntegratedFieldChooser', themes: [THEME.generic, THEME.material, THEME.fluent] },
251+
],
252+
// Popup: [
253+
// { demo: 'Scrolling', themes: [THEME.generic, THEME.material, THEME.fluent] },
254+
// ],
259255
Scheduler: [
260256
'CustomDragAndDrop',
261-
{ demo: 'Resources', themes: [THEME.fluent] },
262257
{ demo: 'CellTemplates', themes: [THEME.generic, THEME.material, THEME.fluent] },
258+
{ demo: 'Resources', themes: [THEME.fluent] },
263259
{ demo: 'Resources', themes: [THEME.generic, THEME.material, THEME.fluent] },
264260
],
265-
Popup: [
266-
{ demo: 'Scrolling', themes: [THEME.generic, THEME.material, THEME.fluent] },
267-
],
268-
Sortable: [
269-
{ demo: 'Kanban', themes: [THEME.generic, THEME.material, THEME.fluent] },
270-
],
271-
PivotGrid: [
272-
{ demo: 'IntegratedFieldChooser', themes: [THEME.generic, THEME.material, THEME.fluent] },
273-
],
261+
// SelectBox: [
262+
// { demo: 'GroupedItems', themes: [THEME.generic, THEME.material, THEME.fluent] },
263+
// ],
264+
// Sortable: [
265+
// { demo: 'Kanban', themes: [THEME.generic, THEME.material, THEME.fluent] },
266+
// ],
267+
// Splitter: [
268+
// { demo: 'Overview', themes: [THEME.generic, THEME.material, THEME.fluent] },
269+
// ],
274270
Toolbar: [
275271
{ demo: 'Adaptability', themes: [THEME.generic, THEME.material, THEME.fluent] },
276-
]
272+
],
273+
VectorMap: [
274+
{ demo: 'DynamicViewport', themes: [THEME.generic, THEME.material, THEME.fluent] },
275+
{ demo: 'TooltipHTMLSupport', themes: [THEME.material] },
276+
],
277277
},
278278
Vue: {
279279
Accordion: [

0 commit comments

Comments
 (0)