Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Demos: Revive important tests after chrome update #29269

Open
wants to merge 14 commits into
base: 25_1
Choose a base branch
from
2 changes: 2 additions & 0 deletions apps/demos/testing/widgets/accordion/Accordion.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ runManualTest('Accordion', 'Overview', ['jQuery', 'React', 'Angular', 'Vue'], (t
test('Custom Overview Appearance', async (t) => {
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);

await t.wait(3000);

await t
.click($(`.${ITEM_TITLE_CLASS}`).nth(1))
.wait(200);
Expand Down
2 changes: 1 addition & 1 deletion apps/demos/testing/widgets/chat/Customization.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ runManualTest('Chat', 'Customization', ['jQuery', 'React', 'Vue', 'Angular'], (t
test('Customization', async (t) => {
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);

await t.wait(500);
await t.wait(3000);

await t
.click(Selector(`.${SELECTBOX_CLASS}`).nth(0))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ runManualTest('Common', 'EditorAppearanceVariants', ['jQuery', 'React', 'Vue', '
test('EditorAppearanceVariants', async (t) => {
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);

await t.wait(3000);

const SELECTBOX_CLASS = 'dx-selectbox';
const stylingModes = ['outlined', 'filled', 'underlined'];
const labelModes = ['static', 'floating', 'hidden', 'outside'];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ runManualTest('DropDownBox', 'MultipleSelection', ['jQuery', 'React', 'Vue', 'An
const DROP_DOWN_BOX_CLASS = 'dx-dropdownbox';
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);

await t.wait(3000);

await t
.click($(`.${DROP_DOWN_BOX_CLASS}`).nth(0))
.wait(200);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ runManualTest('DropDownButton', 'Overview', ['jQuery', 'React', 'Vue', 'Angular'
test('Custom Overview Appearance', async (t) => {
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);

await t.wait(3000);

await t
.click($(`.${DROP_DOWN_BUTTON_CLASS}`).nth(0))
.wait(200);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ runManualTest('Gauges', 'VariableNumberOfBars', ['jQuery', 'React', 'Vue', 'Angu
test('Bars visibility changing', async (t) => {
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);

await t.wait(3000);

const checkBoxes = $('.dx-checkbox-icon');

await t.click(checkBoxes.nth(2));
Expand Down
2 changes: 2 additions & 0 deletions apps/demos/testing/widgets/list/ItemDragging.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ fixture('List.ItemDragging')

runManualTest('List', 'ItemDragging', ['jQuery', 'React', 'Vue', 'Angular'], (test) => {
test('ItemDragging', async (t) => {
await t.wait(3000);

const REORDER_HANDLE_CLASS = 'dx-list-reorder-handle';
const LIST_CLASS = 'dx-list';
const LIST_ITEM_CLASS = 'dx-list-item';
Expand Down
2 changes: 2 additions & 0 deletions apps/demos/testing/widgets/lookup/Lookup.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ runManualTest('Lookup', 'Basics', ['jQuery', 'React', 'Vue', 'Angular'], (test)
test('Custom Lookup Appearance', async (t) => {
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);

await t.wait(3000);

await t
.click($(`.${LOOKUP_CLASS}`).nth(0))
.wait(200);
Expand Down
2 changes: 2 additions & 0 deletions apps/demos/testing/widgets/popup/Scrolling.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ runManualTest('Popup', 'Scrolling', ['jQuery', 'React', 'Vue', 'Angular'], (test
test('Scrolling', async (t) => {
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);

await t.wait(3000);

await t.click(Selector(`.${BUTTON_CLASS}`).nth(0));
await testScreenshot(t, takeScreenshot, 'popup with scrollable container.png');

Expand Down
6 changes: 6 additions & 0 deletions apps/demos/testing/widgets/sortable/kanban.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ runManualTest('Sortable', 'Kanban', ['jQuery', 'React', 'Vue', 'Angular'], (test
test('Drag-n-drop kanban columns', async (t) => {
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);

await t.wait(3000);

await t.drag(Selector(CLASSES.listTitle).nth(0), 600, 50, { speed: 0.5 });
await testScreenshot(t, takeScreenshot, 'kanban_list_drag-n-drop.png');

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

await t.wait(3000);

await t.drag(Selector(CLASSES.card).nth(3), 25, 200, { speed: 0.5 });
await testScreenshot(t, takeScreenshot, 'kanban_card_drag-n-drop_same-column.png');

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

await t.wait(3000);

await t.drag(Selector(CLASSES.card).nth(3), 300, 150, { speed: 0.5 });
await testScreenshot(t, takeScreenshot, 'kanban_card_drag-n-drop_different-column.png');

Expand Down
2 changes: 2 additions & 0 deletions apps/demos/testing/widgets/splitter/Overview.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ runManualTest('Splitter', 'Overview', ['jQuery', 'React', 'Vue', 'Angular'], (te
test('Correct Focus styles on every Item Panes', async (t) => {
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);

await t.wait(3000);

await t
.click($(`.${PANE_CONTENT_CLASS}`).nth(0));

Expand Down
2 changes: 2 additions & 0 deletions apps/demos/testing/widgets/tabpanel/Overview.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ runManualTest('TabPanel', 'Overview', ['jQuery', 'React', 'Vue', 'Angular'], (te
test('Overview', async (t) => {
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);

await t.wait(3000);

await t
.click($(`.${OPTION_CLASS} .${SELECTBOX_CLASS}`).nth(0))
.click($(`.${SELECTBOX_POPUP_WRAPPER_CLASS} .${LIST_ITEM_CLASS}`).nth(1))
Expand Down
2 changes: 2 additions & 0 deletions apps/demos/testing/widgets/toolbar/Adaptability.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ runManualTest('Toolbar', 'Adaptability', ['jQuery', 'React', 'Vue', 'Angular'],
test('Adaptability', async (t) => {
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);

await t.wait(3000);

await t.drag($(`.${RESIZABLE_HANDLE_RIGHT_CLASS}`), -400, 0);
await testScreenshot(t, takeScreenshot, 'toolbar_multiline_mode_minimize.png');

Expand Down
93 changes: 27 additions & 66 deletions apps/demos/utils/visual-tests/matrix-test-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,103 +192,64 @@ const SKIPPED_TESTS = {
],
},
Angular: {
Accordion: [
{ demo: 'Overview', themes: [THEME.generic, THEME.material, THEME.fluent] },
],
Common: [
{ demo: 'EditorAppearanceVariants', themes: [THEME.generic, THEME.material, THEME.fluent] },
],
DropDownButton: [
{ demo: 'Overview', themes: [THEME.generic, THEME.material, THEME.fluent] },
],
Chat: [
{ demo: 'Customization', themes: [THEME.generic, THEME.material, THEME.fluent] },
],
Charts: [
{ demo: 'Overview', themes: [THEME.material] },
{ demo: 'Crosshair', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'CustomAnnotations', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'LoadDataOnDemand', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'CustomLegendMarkers', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'PieWithResolvedLabelOverlapping', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'ZoomingAndScrollingAPI', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'ZoomingOnAreaSelection', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'TooltipHTMLSupport', themes: [THEME.material] },
{ demo: 'Export', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'ExportCustomMarkup', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'LoadDataOnDemand', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'Overview', themes: [THEME.material] },
{ demo: 'PieWithResolvedLabelOverlapping', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'PopupEditing', themes: [THEME.generic, THEME.material, THEME.fluent] },
],
VectorMap: [
{ demo: 'TooltipHTMLSupport', themes: [THEME.material] },
{ demo: 'DynamicViewport', themes: [THEME.generic, THEME.material, THEME.fluent] },
],
DropDownBox: [
{ demo: 'MultipleSelection', themes: [THEME.generic, THEME.material, THEME.fluent] },
],
List: [
{ demo: 'ItemDragging', themes: [THEME.generic, THEME.material, THEME.fluent] },
],
TabPanel: [
{ demo: 'Overview', themes: [THEME.generic, THEME.material, THEME.fluent] },
],
SelectBox: [
{ demo: 'GroupedItems', themes: [THEME.generic, THEME.material, THEME.fluent] },
],
Splitter: [
{ demo: 'Overview', themes: [THEME.generic, THEME.material, THEME.fluent] },
],
Gauges: [
{ demo: 'VariableNumberOfBars', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'ZoomingAndScrollingAPI', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'ZoomingOnAreaSelection', themes: [THEME.generic, THEME.material, THEME.fluent] },
],
DataGrid: [
{ demo: 'Appearance', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'AdvancedMasterDetailView', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'BatchEditing', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'AjaxRequest', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'InfiniteScrolling', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'MasterDetailView', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'SimpleArray', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'MasterDetailAPI', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'DataValidation', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'MultipleSorting', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'OdataService', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'Appearance', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'BatchEditing', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'CellEditingAndEditingAPI', themes: [THEME.generic, THEME.fluent, THEME.material] },
{ demo: 'CustomNewRecordPosition', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'DataValidation', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'EditStateManagement', themes: [THEME.generic, THEME.fluent, THEME.material] },
{ demo: 'Filtering', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'FilteringAPI', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'GroupSummaries', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'RecordPaging', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'RowSelection', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'MultipleSelection', themes: [THEME.material, THEME.fluent] },
{ demo: 'CellEditingAndEditingAPI', themes: [THEME.generic, THEME.fluent, THEME.material] },
{ demo: 'InfiniteScrolling', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'MasterDetailAPI', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'MasterDetailView', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'MultipleRecordSelectionAPI', themes: [THEME.generic, THEME.fluent, THEME.material] },
{ demo: 'MultipleSelection', themes: [THEME.material, THEME.fluent] },
{ demo: 'MultipleSorting', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'OdataService', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'RecordGrouping', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'RecordPaging', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'RemoteGrouping', themes: [THEME.generic, THEME.fluent, THEME.material] },
{ demo: 'RowEditingAndEditingEvents', themes: [THEME.generic, THEME.fluent, THEME.material] },
{ demo: 'EditStateManagement', themes: [THEME.generic, THEME.fluent, THEME.material] },
{ demo: 'RecordGrouping', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'RowSelection', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'SimpleArray', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'ToolbarCustomization', themes: [THEME.generic, THEME.material, THEME.fluent] },
],
Form: [
'CustomizeItem',
{ demo: 'Validation', themes: [THEME.material] },
],
PivotGrid: [
{ demo: 'IntegratedFieldChooser', themes: [THEME.generic, THEME.material, THEME.fluent] },
],
Scheduler: [
'CustomDragAndDrop',
{ demo: 'Resources', themes: [THEME.fluent] },
{ demo: 'CellTemplates', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'Resources', themes: [THEME.fluent] },
{ demo: 'Resources', themes: [THEME.generic, THEME.material, THEME.fluent] },
],
Popup: [
{ demo: 'Scrolling', themes: [THEME.generic, THEME.material, THEME.fluent] },
],
Sortable: [
{ demo: 'Kanban', themes: [THEME.generic, THEME.material, THEME.fluent] },
],
PivotGrid: [
{ demo: 'IntegratedFieldChooser', themes: [THEME.generic, THEME.material, THEME.fluent] },
VectorMap: [
{ demo: 'TooltipHTMLSupport', themes: [THEME.material] },
{ demo: 'DynamicViewport', themes: [THEME.generic, THEME.material, THEME.fluent] },
],
Toolbar: [
{ demo: 'Adaptability', themes: [THEME.generic, THEME.material, THEME.fluent] },
]
},
Vue: {
Charts: [
Expand Down
Loading