Skip to content

Commit b995ad3

Browse files
no message
1 parent c6220c7 commit b995ad3

File tree

8 files changed

+40
-30
lines changed

8 files changed

+40
-30
lines changed

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

+5
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ 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.click('body', {
20+
offsetX: 0,
21+
offsetY: 0,
22+
});
23+
1924
await t
2025
.click($(`.${ITEM_TITLE_CLASS}`).nth(1))
2126
.wait(200);

apps/demos/testing/widgets/contextmenu/ContextMenuScrolling.test.js

+5
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ runManualTest('ContextMenu', 'Scrolling', ['jQuery', 'React', 'Vue', 'Angular'],
2828
test('Custom Template SubMenu Appearance', async (t) => {
2929
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);
3030

31+
await t.click('body', {
32+
offsetX: 0,
33+
offsetY: 0,
34+
});
35+
3136
await t.rightClick(`.${TARGET_AREA}`);
3237

3338
await t.click($(`.${MENU_ITEM_TEXT_CLASS}`).withText('Electronics'));

apps/demos/testing/widgets/contextmenu/ContextMenuShare.test.js

+5
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ runManualTest('ContextMenu', 'Templates', ['jQuery', 'React', 'Vue', 'Angular'],
1616
test('Custom Template Share Appearance', async (t) => {
1717
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);
1818

19+
await t.click('body', {
20+
offsetX: 0,
21+
offsetY: 0,
22+
});
23+
1924
await t.rightClick(`#${IMAGE_ID}`);
2025

2126
await t.click($(`.${MENU_ITEM_TEXT_CLASS}`).withText('Share'));

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

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

21+
await t.click('body', {
22+
offsetX: 0,
23+
offsetY: 0,
24+
});
25+
2126
await t.click(Selector(`.${CHECKBOX_CONTAINER_CLASS}`).nth(-1));
2227

2328
await t.click(Selector(`.${LIST_ITEM_CONTENT_CLASS}`).nth(3));

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

+5
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ 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.click('body', {
19+
offsetX: 0,
20+
offsetY: 0,
21+
});
22+
1823
await t
1924
.click($(`.${PANE_CONTENT_CLASS}`).nth(0));
2025

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

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

21+
await t.click('body', {
22+
offsetX: 0,
23+
offsetY: 0,
24+
});
25+
2126
const $selectBox = $(`.${OPTION_CLASS} .${SELECTBOX_CLASS}`);
2227

2328
await t

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

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

22+
await t.click('body', {
23+
offsetX: 0,
24+
offsetY: 0,
25+
});
26+
2227
await t
2328
.click($(`.${OPTION_CLASS} .${SELECTBOX_CLASS}`).nth(0))
2429
.click($(`.${SELECTBOX_POPUP_WRAPPER_CLASS} .${LIST_ITEM_CLASS}`).nth(1))

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

+5-30
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,6 @@ const SKIPPED_TESTS = {
196196
],
197197
},
198198
Angular: {
199-
Accordion: [
200-
{ demo: 'Overview', themes: [THEME.material, THEME.fluent] },
201-
],
202199
Common: [
203200
{ demo: 'EditorAppearanceVariants', themes: [THEME.generic, THEME.material, THEME.fluent] },
204201
],
@@ -235,18 +232,9 @@ const SKIPPED_TESTS = {
235232
List: [
236233
{ demo: 'ItemDragging', themes: [THEME.generic, THEME.material, THEME.fluent] },
237234
],
238-
Tabs: [
239-
{ demo: 'Selection', themes: [THEME.generic, THEME.material, THEME.fluent] },
240-
],
241-
TabPanel: [
242-
{ demo: 'Overview', themes: [THEME.material, THEME.fluent] },
243-
],
244235
SelectBox: [
245236
{ demo: 'GroupedItems', themes: [THEME.generic, THEME.material, THEME.fluent] },
246237
],
247-
Splitter: [
248-
{ demo: 'Overview', themes: [THEME.material, THEME.fluent] },
249-
],
250238
Gauges: [
251239
{ demo: 'VariableNumberOfBars', themes: [THEME.generic, THEME.material, THEME.fluent] },
252240
],
@@ -278,7 +266,7 @@ const SKIPPED_TESTS = {
278266
{ demo: 'ToolbarCustomization', themes: [THEME.generic, THEME.material, THEME.fluent] },
279267
],
280268
Form: [
281-
{ demo: 'CustomizeItem', themes: [THEME.generic, THEME.material, THEME.fluent] },
269+
{ demo: 'CustomizeItem', themes: [THEME.material, THEME.fluent] },
282270
{ demo: 'Validation', themes: [THEME.material] },
283271
],
284272
Scheduler: [
@@ -287,21 +275,15 @@ const SKIPPED_TESTS = {
287275
{ demo: 'CellTemplates', themes: [THEME.generic, THEME.material, THEME.fluent] },
288276
{ demo: 'Resources', themes: [THEME.generic, THEME.material, THEME.fluent] },
289277
],
290-
Popup: [
291-
{ demo: 'Scrolling', themes: [THEME.generic, THEME.material, THEME.fluent] },
292-
],
293278
Sortable: [
294279
{ demo: 'Kanban', themes: [THEME.generic, THEME.material, THEME.fluent] },
295280
],
296281
PivotGrid: [
297282
{ demo: 'IntegratedFieldChooser', themes: [THEME.generic, THEME.material, THEME.fluent] },
298283
],
299-
Toolbar: [
300-
{ demo: 'Adaptability', themes: [THEME.material, THEME.fluent] },
301-
],
302284
TreeView: [
303-
{ demo: 'ItemSelectionAndCustomization', themes: [THEME.generic, THEME.material, THEME.fluent] },
304-
{ demo: 'Selection', themes: [THEME.generic, THEME.material, THEME.fluent] },
285+
{ demo: 'ItemSelectionAndCustomization', themes: [THEME.material, THEME.fluent] },
286+
{ demo: 'Selection', themes: [THEME.material, THEME.fluent] },
305287
],
306288
},
307289
Vue: {
@@ -355,7 +337,7 @@ const SKIPPED_TESTS = {
355337
{ demo: 'TopOrBottomPosition', themes: [THEME.material] },
356338
],
357339
Tabs: [
358-
{ demo: 'Selection', themes: [THEME.generic, THEME.material, THEME.fluent] },
340+
{ demo: 'Selection', themes: [THEME.material, THEME.fluent] },
359341
],
360342
Charts: [
361343
{ demo: 'Overview', themes: [THEME.material] },
@@ -385,7 +367,7 @@ const SKIPPED_TESTS = {
385367
{ demo: 'Selection', themes: [THEME.generic, THEME.material, THEME.fluent] },
386368
],
387369
Form: [
388-
{ demo: 'CustomizeItem', themes: [THEME.generic, THEME.material, THEME.fluent] },
370+
{ demo: 'CustomizeItem', themes: [THEME.material, THEME.fluent] },
389371
],
390372
},
391373
};
@@ -487,13 +469,6 @@ export function runManualTestCore(testObject, widget, demo, framework, callback)
487469
const [width, height] = t.fixtureCtx.initialWindowSize;
488470

489471
await t.resizeWindow(width, height);
490-
491-
if (framework === 'Angular') {
492-
await t.click('body', {
493-
offsetX: 0,
494-
offsetY: 0,
495-
});
496-
}
497472
});
498473

499474
if (settings.explicitTests) {

0 commit comments

Comments
 (0)