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

[test] Use describeTreeView for items rendering edge-case tests #13168

Merged
merged 3 commits into from
May 20, 2024

Conversation

flaviendelangle
Copy link
Member

Part of #12433

I had to improve describeTreeView to handle these less traditional tests

@flaviendelangle flaviendelangle added test core Infrastructure work going on behind the scenes component: tree view TreeView, TreeItem. This is the name of the generic UI component, not the React module! labels May 17, 2024
@flaviendelangle flaviendelangle self-assigned this May 17, 2024
@flaviendelangle flaviendelangle changed the title [core] Use describeTreeView for edge-case tests [core] Use describeTreeView for items rendering edge-case tests May 17, 2024
@mui-bot
Copy link

mui-bot commented May 17, 2024

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

Generated by 🚫 dangerJS against 0477f97

@@ -14,6 +14,13 @@ interface UseTreeItem2UtilsReturnValue {
status: UseTreeItem2Status;
}

const isItemExpandable = (reactChildren: React.ReactNode) => {
Copy link
Member Author

Choose a reason for hiding this comment

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

Here is a bug fix 😆

Copy link
Member

@LukasTy LukasTy left a comment

Choose a reason for hiding this comment

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

LGTM. 👌
WDYT about prefixing the PR with test instead? 🤔

@flaviendelangle flaviendelangle changed the title [core] Use describeTreeView for items rendering edge-case tests [test] Use describeTreeView for items rendering edge-case tests May 20, 2024
Co-authored-by: Lukas <llukas.tyla@gmail.com>
Signed-off-by: Flavien DELANGLE <flaviendelangle@gmail.com>
@flaviendelangle flaviendelangle merged commit a47d555 into mui:master May 20, 2024
17 checks passed
@flaviendelangle flaviendelangle deleted the jsx-items-test branch May 20, 2024 09:29
arthurbalduini pushed a commit to arthurbalduini/mui-x that referenced this pull request May 23, 2024
…i#13168)

Signed-off-by: Flavien DELANGLE <flaviendelangle@gmail.com>
Co-authored-by: Lukas <llukas.tyla@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: tree view TreeView, TreeItem. This is the name of the generic UI component, not the React module! core Infrastructure work going on behind the scenes test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants