Skip to content

Commit 096bb56

Browse files
update etalon
1 parent 94cc7aa commit 096bb56

7 files changed

+22
-9
lines changed

apps/demos/testing/widgets/form/CustomomizeItem.test.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { testScreenshot } from '../../../utils/visual-tests/helpers/theme-utils'
66
fixture('Form.CustomizeItem')
77
.page('http://localhost:8080/')
88
.before(async (ctx) => {
9-
ctx.initialWindowSize = [900, 600];
9+
ctx.initialWindowSize = [900, 800];
1010
});
1111

1212
runManualTest('Form', 'CustomizeItem', ['jQuery', 'React', 'Vue', 'Angular'], (test) => {
@@ -17,6 +17,7 @@ runManualTest('Form', 'CustomizeItem', ['jQuery', 'React', 'Vue', 'Angular'], (t
1717
offsetX: -1,
1818
offsetY: -1,
1919
});
20+
2021
await testScreenshot(t, takeScreenshot, 'form_customize_item_label_tooltip.png');
2122

2223
await t
Loading

apps/demos/testing/widgets/list/ItemDragging.test.js

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

1212
runManualTest('List', 'ItemDragging', ['jQuery', 'React', 'Vue', 'Angular'], (test) => {
1313
test('ItemDragging', async (t) => {
14+
await t.click('body', {
15+
offsetX: -1,
16+
offsetY: -1,
17+
});
18+
1419
const REORDER_HANDLE_CLASS = 'dx-list-reorder-handle';
1520
const LIST_CLASS = 'dx-list';
1621
const LIST_ITEM_CLASS = 'dx-list-item';

apps/demos/testing/widgets/list/ListSelection.test.js

+5
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ fixture('List.ListSelection')
1616

1717
runManualTest('List', 'ListSelection', ['jQuery', 'React', 'Vue', 'Angular'], (test) => {
1818
test('List Selection', async (t) => {
19+
await t.click('body', {
20+
offsetX: -1,
21+
offsetY: -1,
22+
});
23+
1924
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);
2025

2126
const optionsContainer = await Selector('.options');

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

+10-8
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, 1000);
45+
setTimeout(resolve, 2000);
4646
clearInterval(demoAppIntervalHandle);
4747
}
4848
demoAppCounter += 1;
@@ -203,7 +203,7 @@ const SKIPPED_TESTS = {
203203
],
204204
Charts: [
205205
{ demo: 'Overview', themes: [THEME.material] },
206-
{ demo: 'Crosshair', themes: [THEME.material] },
206+
{ demo: 'Crosshair', themes: [THEME.material, THEME.fluent] },
207207
{ demo: 'CustomAnnotations', themes: [THEME.material] },
208208
{ demo: 'LoadDataOnDemand', themes: [THEME.material] },
209209
{ demo: 'CustomLegendMarkers', themes: [THEME.material] },
@@ -226,7 +226,7 @@ const SKIPPED_TESTS = {
226226
{ demo: 'GroupedItems', themes: [THEME.generic, THEME.material, THEME.fluent] },
227227
],
228228
Gauges: [
229-
{ demo: 'VariableNumberOfBars', themes: [THEME.material, THEME.fluent] },
229+
{ demo: 'VariableNumberOfBars', themes: [THEME.generic, THEME.material, THEME.fluent] },
230230
],
231231
DataGrid: [
232232
{ demo: 'Appearance', themes: [THEME.generic, THEME.material, THEME.fluent] },
@@ -311,7 +311,7 @@ const SKIPPED_TESTS = {
311311
{ demo: 'ZoomingAndScrollingAPI', themes: [THEME.material] },
312312
{ demo: 'Crosshair', themes: [THEME.material] },
313313
{ demo: 'CustomAnnotations', themes: [THEME.material] },
314-
{ demo: 'CustomLegendMarkers', themes: [THEME.material] },
314+
{ demo: 'CustomLegendMarkers', themes: [THEME.generic, THEME.material, THEME.fluent] },
315315
],
316316
DataGrid: [
317317
{ demo: 'BatchEditing', themes: [THEME.fluent] },
@@ -435,13 +435,13 @@ export function runManualTestCore(
435435
await waitForAngularLoading();
436436
}
437437

438-
const [width, height] = t.fixtureCtx.initialWindowSize;
439-
440-
await t.resizeWindow(width, height);
441-
442438
if (isAngular && shouldWaitContentAppears) {
443439
await forceContentAppears(t);
444440
}
441+
442+
const [width, height] = t.fixtureCtx.initialWindowSize;
443+
444+
await t.resizeWindow(width, height);
445445
});
446446

447447
if (settings.explicitTests) {
@@ -459,6 +459,8 @@ export const forceContentAppears = async (t) => {
459459
offsetX: -1,
460460
offsetY: -1,
461461
});
462+
463+
await t.wait(1000);
462464
};
463465

464466

0 commit comments

Comments
 (0)