Skip to content

[test] Wait for GridToolbarCustom rows before screenshot#22844

Merged
Janpot merged 2 commits into
mui:masterfrom
Janpot:fix/grid-toolbar-custom-screenshot-loading
Jun 17, 2026
Merged

[test] Wait for GridToolbarCustom rows before screenshot#22844
Janpot merged 2 commits into
mui:masterfrom
Janpot:fix/grid-toolbar-custom-screenshot-loading

Conversation

@Janpot

@Janpot Janpot commented Jun 17, 2026

Copy link
Copy Markdown
Member

The docs-data-grid-components-toolbar/GridToolbarCustom regression screenshot intermittently captures the grid's loading state on master. The demo loads rows asynchronously via useDemoData, which the screenshot harness's aria-busy gate only tracks for fonts — not async demo data — so the capture races the skeleton overlay.

Add a per-route waitForSelector rule that waits for a real (non-skeleton) data row before screenshotting. Skeleton overlay rows carry both .MuiDataGrid-row and .MuiDataGrid-rowSkeleton, so the selector excludes the latter.

@Janpot Janpot added type: regression A bug, but worse, it used to behave as expected. scope: code-infra Involves the code-infra product (https://www.notion.so/mui-org/5562c14178aa42af97bc1fa5114000cd). labels Jun 17, 2026
@code-infra-dashboard

code-infra-dashboard Bot commented Jun 17, 2026

Copy link
Copy Markdown

Deploy preview

https://deploy-preview-22844--material-ui-x.netlify.app/

Bundle size

Bundle Parsed size Gzip size
@mui/x-data-grid 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-pro 0B(0.00%) 0B(0.00%)
@mui/x-data-grid-premium 0B(0.00%) 0B(0.00%)
@mui/x-charts 0B(0.00%) 0B(0.00%)
@mui/x-charts-pro 0B(0.00%) 0B(0.00%)
@mui/x-charts-premium 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers 0B(0.00%) 0B(0.00%)
@mui/x-date-pickers-pro 0B(0.00%) 0B(0.00%)
@mui/x-tree-view 0B(0.00%) 0B(0.00%)
@mui/x-tree-view-pro 0B(0.00%) 0B(0.00%)
@mui/x-license 0B(0.00%) 0B(0.00%)

Details of bundle changes


Check out the code infra dashboard for more information about this PR.

@Janpot
Janpot marked this pull request as ready for review June 17, 2026 11:36
@Janpot
Janpot merged commit d212537 into mui:master Jun 17, 2026
21 checks passed
mbrookes pushed a commit to mbrookes/mui-x that referenced this pull request Jun 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: code-infra Involves the code-infra product (https://www.notion.so/mui-org/5562c14178aa42af97bc1fa5114000cd). type: regression A bug, but worse, it used to behave as expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants