Skip to content

[TESTS] T1330038: TypeError - DataGrid does not accept groupInterval as an array#34064

Merged
Raushen merged 3 commits into
DevExpress:26_1from
Raushen:T1330038-tests-26_1
Jun 19, 2026
Merged

[TESTS] T1330038: TypeError - DataGrid does not accept groupInterval as an array#34064
Raushen merged 3 commits into
DevExpress:26_1from
Raushen:T1330038-tests-26_1

Conversation

@Raushen

@Raushen Raushen commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@Raushen Raushen self-assigned this Jun 18, 2026
Copilot AI review requested due to automatic review settings June 18, 2026 14:46
@Raushen Raushen requested a review from a team as a code owner June 18, 2026 14:46
@Raushen Raushen added the 26_1 label Jun 18, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Jest coverage to prevent regressions where DataGrid header filtering fails when headerFilter.groupInterval is provided as an array (multi-level grouping), including end-to-end-like integration checks of the header filter tree popup.

Changes:

  • Added unit tests for getGroupInterval, getHeaderFilterGroupParameters, and getFormatOptions behaviors with groupInterval arrays.
  • Added integration tests validating header filter tree rendering and filtering for both numeric bucket hierarchies (number[]) and hierarchical string data (string[]).
  • Refactored/expanded TreeView test models to support tree-structure assertions and reused them from GridCore header filter models.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
packages/devextreme/js/__internal/ui/tests/mock/model/tree_view/types.ts Introduces a small structure type for asserting TreeView hierarchies in tests.
packages/devextreme/js/__internal/ui/tests/mock/model/tree_view/tree_view.ts New TreeView test model with structure extraction, expanding, and selection helpers.
packages/devextreme/js/__internal/ui/tests/mock/model/tree_view/node.ts Node-level helpers for text/children extraction and expansion logic.
packages/devextreme/js/__internal/ui/tests/mock/model/tree_view.ts Removes the older single-file TreeView model implementation.
packages/devextreme/js/__internal/grids/grid_core/header_filter/tests/utils.test.ts Adds unit tests covering normalization and parameter/format behavior for array group intervals.
packages/devextreme/js/__internal/grids/grid_core/header_filter/tests/header_filter.integration.test.ts Adds integration tests verifying the header filter tree popup builds nested levels and applies filters correctly.
packages/devextreme/js/__internal/grids/grid_core/tests/mock/model/header_filter.ts Extends header filter popup model with getTreeView() for tree-based header filters.
packages/devextreme/js/__internal/grids/grid_core/tests/mock/model/grid_core.ts Adds openHeaderFilter() helper to open the header filter popup in integration tests.
packages/devextreme/js/__internal/grids/grid_core/tests/mock/model/column_chooser.ts Updates TreeViewModel import path after the test model refactor.
packages/devextreme/js/__internal/filter_builder/tests/mock/model/filter_builder.ts Updates TreeViewModel import path after the test model refactor.

@Raushen Raushen closed this Jun 18, 2026
@Raushen Raushen reopened this Jun 18, 2026
@Raushen Raushen closed this Jun 19, 2026
@Raushen Raushen reopened this Jun 19, 2026
Copilot AI review requested due to automatic review settings June 19, 2026 09:52

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

Comment on lines +26 to +34
public expandAll(): void {
const MAX_DEPTH = 10;
for (let depth = 0; depth < MAX_DEPTH; depth += 1) {
const collapsedNodes = this.getNodes().filter((node) => node.isCollapsed());

if (!collapsedNodes.length) return;
collapsedNodes.forEach((node) => node.expand());
}
}
Comment on lines +20 to +24
public getTreeView(): TreeViewModel {
const popup = this.getPopupWrapper();
const treeViewElement = popup?.querySelector(`.${CLASSES.treeView}`) as HTMLElement;
return new TreeViewModel(treeViewElement);
}
@Raushen Raushen merged commit 9c7ab4c into DevExpress:26_1 Jun 19, 2026
105 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants