Skip to content

Conversation

@flaviendelangle
Copy link
Member

@flaviendelangle flaviendelangle commented Oct 31, 2025

Part of #19010

I introduced 2 small utilities to easily have fully functional tests.
When we test something that can be controlled by the parameters, I think it's more reliable that hardcoding the test changes.
When we test something that can't be controlled by the parameters (for example the placeholder), then at least we only have to override this part of the UI. But I think we could introduce other utilities in the future to help.

Not sure if we should also use the builder pattern for the whole state.
That could be interesting in the future to have something more powerful.

@flaviendelangle flaviendelangle self-assigned this Oct 31, 2025
@flaviendelangle flaviendelangle added test type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature. scope: scheduler Changes related to the scheduler. labels Oct 31, 2025
isResizable: createSelector(
(state: State, eventId: CalendarEventId, surfaceType: EventSurfaceType) => {
if (schedulerSelectors.isEventReadOnly(state, eventId) || !state.areEventsDraggable) {
if (schedulerSelectors.isEventReadOnly(state, eventId) || !state.areEventsResizable) {
Copy link
Member Author

Choose a reason for hiding this comment

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

🕵️

@mui-bot
Copy link

mui-bot commented Oct 31, 2025

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

Bundle size report

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%)

Details of bundle changes

Generated by 🚫 dangerJS against 3aeccf6

@flaviendelangle flaviendelangle marked this pull request as ready for review October 31, 2025 09:00
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged. label Oct 31, 2025
@github-actions
Copy link

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions github-actions bot added PR: out-of-date The pull request has merge conflicts and can't be merged. and removed PR: out-of-date The pull request has merge conflicts and can't be merged. labels Oct 31, 2025
@github-actions
Copy link

github-actions bot commented Nov 3, 2025

This pull request has conflicts, please resolve those before we can evaluate the pull request.

1 similar comment
@github-actions
Copy link

github-actions bot commented Nov 3, 2025

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged. label Nov 3, 2025
Copy link
Member

@rita-codes rita-codes left a comment

Choose a reason for hiding this comment

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

Left a small comment, love this improvement! 🚢

@flaviendelangle flaviendelangle merged commit e6410b7 into mui:master Nov 5, 2025
21 checks passed
@flaviendelangle flaviendelangle deleted the eventCalendarEventSelectors-tests branch November 5, 2025 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: scheduler Changes related to the scheduler. test type: enhancement It’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants