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

Open
wants to merge 11 commits into
base: 24_2
Choose a base branch
from
16 changes: 4 additions & 12 deletions apps/demos/testing/common.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,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 @@ -84,9 +82,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 @@ -168,9 +164,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 @@ -243,9 +237,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
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 @@ -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/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
2 changes: 1 addition & 1 deletion apps/demos/testing/widgets/selectbox/GroupedItems.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ runManualTest('SelectBox', 'GroupedItems', ['jQuery', 'React', 'Vue', 'Angular']
const SELECT_BOX_CLASS = 'dx-selectbox';
const { takeScreenshot, compareResults } = createScreenshotsComparer(t);

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

await t
.click($(`.${SELECT_BOX_CLASS}`).nth(0))
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
115 changes: 50 additions & 65 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,88 @@ 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] },
],
// Accordion: [
// { demo: 'Overview', 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] },
],
// DropDownButton: [
// { demo: 'Overview', themes: [THEME.generic, THEME.material, THEME.fluent] },
// ],
Form: [
'CustomizeItem',
{ demo: 'Validation', themes: [THEME.material] },
],
// Gauges: [
// { demo: 'VariableNumberOfBars', themes: [THEME.generic, THEME.material, THEME.fluent] },
// ],
PivotGrid: [
{ demo: 'IntegratedFieldChooser', themes: [THEME.generic, THEME.material, THEME.fluent] },
],
// Popup: [
// { demo: 'Scrolling', 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] },
],
// SelectBox: [
// { demo: 'GroupedItems', themes: [THEME.generic, THEME.material, THEME.fluent] },
// ],
// Sortable: [
// { demo: 'Kanban', themes: [THEME.generic, THEME.material, THEME.fluent] },
// ],
// Splitter: [
// { demo: 'Overview', 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