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 #29272

Open
wants to merge 7 commits into
base: 24_1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 4 additions & 12 deletions apps/demos/testing/common.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,7 @@ const getTestSpecificSkipRules = (testName) => {
const SKIPPED_TESTS = {
jQuery: {
Chat: [
// TODO Chrome133: skipped during chrome update
// error "ReferenceError: AzureOpenAI is not defined"
{ demo: 'AIAndChatbotIntegration', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'AIAndChatbotIntegration', themes: [THEME.material] },
],
Charts: [
{ demo: 'ServerSideDataProcessing', themes: [THEME.material] },
Expand All @@ -83,9 +81,7 @@ const SKIPPED_TESTS = {
},
Angular: {
Chat: [
// TODO Chrome133: skipped during chrome update
// error "ReferenceError: AzureOpenAI is not defined"
{ demo: 'AIAndChatbotIntegration', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'AIAndChatbotIntegration', themes: [THEME.material] },
],
DataGrid: [
{ demo: 'EditStateManagement', themes: [THEME.generic] },
Expand Down Expand Up @@ -175,9 +171,7 @@ const SKIPPED_TESTS = {
},
React: {
Chat: [
// TODO Chrome133: skipped during chrome update
// error "ReferenceError: AzureOpenAI is not defined"
{ demo: 'AIAndChatbotIntegration', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'AIAndChatbotIntegration', themes: [THEME.material] },
],
Charts: [
{ demo: 'PiesWithEqualSize', themes: [THEME.material] },
Expand Down Expand Up @@ -258,9 +252,7 @@ const SKIPPED_TESTS = {
{ demo: 'Overview', themes: [THEME.generic, THEME.material, THEME.fluent] },
],
Chat: [
// TODO Chrome133: skipped during chrome update
// error "ReferenceError: AzureOpenAI is not defined"
{ demo: 'AIAndChatbotIntegration', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'AIAndChatbotIntegration', themes: [THEME.material] },
],
Charts: [
{ demo: 'TilingAlgorithms', themes: [THEME.material] },
Expand Down
4 changes: 3 additions & 1 deletion apps/demos/testing/widgets/accordion/Accordion.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ fixture('Accordion.Overview')
ctx.initialWindowSize = [900, 600];
});

runManualTest('Accordion', 'Overview', ['jQuery', 'React', 'Vue', 'Angular'], (test) => {
runManualTest('Accordion', 'Overview', ['jQuery', 'React', 'Angular', 'Vue'], (test) => {
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
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ runManualTest('Common', 'EditorAppearanceVariants', ['React', 'Vue', 'Angular',
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/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
165 changes: 66 additions & 99 deletions apps/demos/utils/visual-tests/matrix-test-helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,105 +196,72 @@ 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: 'PopupEditing', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'ClientSideDataProcessing', 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] },
],
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: 'CustomNewRecordPosition', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ 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: 'MultipleRecordSelectionAPI', themes: [THEME.generic, THEME.fluent, THEME.material] },
{ 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: 'ToolbarCustomization', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'ColumnCustomization', themes: [THEME.generic, THEME.material, THEME.fluent] },
],
Form: [
'CustomizeItem',
{ demo: 'Validation', themes: [THEME.material] },
],
Scheduler: [
'CustomDragAndDrop',
{ demo: 'Resources', themes: [THEME.fluent] },
{ demo: 'CellTemplates', themes: [THEME.generic, THEME.material, 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] },
],
Toolbar: [
{ demo: 'Adaptability', themes: [THEME.generic, THEME.material, THEME.fluent] },
]
// Accordion: [
// { demo: 'Overview', themes: [THEME.generic, THEME.material, THEME.fluent] },
// ],
Charts: [
{ demo: 'ClientSideDataProcessing', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'Crosshair', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'CustomAnnotations', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'CustomLegendMarkers', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ 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] },
{ demo: 'TooltipHTMLSupport', themes: [THEME.material] },
{ demo: 'ZoomingAndScrollingAPI', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'ZoomingOnAreaSelection', themes: [THEME.generic, THEME.material, THEME.fluent] },
],
DataGrid: [
{ demo: 'AdvancedMasterDetailView', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'AjaxRequest', 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: 'ColumnCustomization', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ 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: '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: '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: 'CellTemplates', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'Resources', themes: [THEME.fluent] },
{ demo: 'Resources', themes: [THEME.generic, THEME.material, THEME.fluent] },
],
// Toolbar: [
// { demo: 'Adaptability', themes: [THEME.generic, THEME.material, THEME.fluent] },
// ],
VectorMap: [
{ demo: 'DynamicViewport', themes: [THEME.generic, THEME.material, THEME.fluent] },
{ demo: 'TooltipHTMLSupport', themes: [THEME.material] },
],
},
Vue: {
Accordion: [
Expand Down
Loading