Skip to content

Commit fdf03b1

Browse files
author
marker dao ®
committed
feat(matrix): Unskip && Set t.wait
1 parent 7b75fcf commit fdf03b1

15 files changed

+39
-7
lines changed

apps/demos/testing/widgets/accordion/Accordion.test.js

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ runManualTest('Accordion', 'Overview', ['jQuery', 'React', 'Angular', 'Vue'], (t
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($(`.${ITEM_TITLE_CLASS}`).nth(1))
2123
.wait(200);

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

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

21+
await t.wait(1000);
22+
2123
await t
2224
.click(Selector(`.${SELECTBOX_CLASS}`).nth(0))
2325
.click(Selector(`.${LIST_ITEM_CLASS}`).nth(2))

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/dropdownbox/MultipleSelection.test.js

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ runManualTest('DropDownBox', 'MultipleSelection', ['jQuery', 'React', 'Vue', 'An
1414
const DROP_DOWN_BOX_CLASS = 'dx-dropdownbox';
1515
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);
1616

17+
await t.wait(1000);
18+
1719
await t
1820
.click($(`.${DROP_DOWN_BOX_CLASS}`).nth(0))
1921
.wait(200);

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/list/ItemDragging.test.js

+2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ fixture('List.ItemDragging')
1111

1212
runManualTest('List', 'ItemDragging', ['jQuery', 'React', 'Vue', 'Angular'], (test) => {
1313
test('ItemDragging', async (t) => {
14+
await t.wait(1000);
15+
1416
const REORDER_HANDLE_CLASS = 'dx-list-reorder-handle';
1517
const LIST_CLASS = 'dx-list';
1618
const LIST_ITEM_CLASS = 'dx-list-item';

apps/demos/testing/widgets/lookup/Lookup.test.js

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

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

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

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ 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(1000);
18+
1719
await t
1820
.click($(`.${SELECT_BOX_CLASS}`).nth(0))
1921
.wait(200);

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/testing/widgets/tabpanel/Overview.test.js

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

21+
await t.wait(1000);
22+
2123
await t
2224
.click($(`.${OPTION_CLASS} .${SELECTBOX_CLASS}`).nth(0))
2325
.click($(`.${SELECTBOX_POPUP_WRAPPER_CLASS} .${LIST_ITEM_CLASS}`).nth(1))

apps/demos/testing/widgets/toolbar/Adaptability.test.js

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

22+
await t.wait(1000);
23+
2224
await t.drag($(`.${RESIZABLE_HANDLE_RIGHT_CLASS}`), -400, 0);
2325
await testScreenshot(t, takeScreenshot, 'toolbar_multiline_mode_minimize.png');
2426

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

+7-7
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const waitForAngularLoading = ClientFunction(() => new Promise((resolve)
4242
const demoAppIntervalHandle = setInterval(() => {
4343
const demoApp = document.querySelector('demo-app');
4444
if ((demoApp && demoApp.innerText !== 'Loading...') || demoAppCounter === 120) {
45-
setTimeout(resolve, 3000);
45+
setTimeout(resolve, 1000);
4646
clearInterval(demoAppIntervalHandle);
4747
}
4848
demoAppCounter += 1;
@@ -192,9 +192,9 @@ const SKIPPED_TESTS = {
192192
],
193193
},
194194
Angular: {
195-
Accordion: [
196-
{ demo: 'Overview', themes: [THEME.generic, THEME.material, THEME.fluent] },
197-
],
195+
// Accordion: [
196+
// { demo: 'Overview', themes: [THEME.generic, THEME.material, THEME.fluent] },
197+
// ],
198198
Charts: [
199199
{ demo: 'Crosshair', themes: [THEME.generic, THEME.material, THEME.fluent] },
200200
{ demo: 'CustomAnnotations', themes: [THEME.generic, THEME.material, THEME.fluent] },
@@ -279,9 +279,9 @@ const SKIPPED_TESTS = {
279279
// TabPanel: [
280280
// { demo: 'Overview', themes: [THEME.generic, THEME.material, THEME.fluent] },
281281
// ],
282-
Toolbar: [
283-
{ demo: 'Adaptability', themes: [THEME.generic, THEME.material, THEME.fluent] },
284-
],
282+
// Toolbar: [
283+
// { demo: 'Adaptability', themes: [THEME.generic, THEME.material, THEME.fluent] },
284+
// ],
285285
VectorMap: [
286286
{ demo: 'TooltipHTMLSupport', themes: [THEME.material] },
287287
{ demo: 'DynamicViewport', themes: [THEME.generic, THEME.material, THEME.fluent] },

0 commit comments

Comments
 (0)