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

[core] Use describeTreeView for keyboard selection tests #13164

Merged

Conversation

flaviendelangle
Copy link
Member

Partof #12433

@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 describe TreeView for keyboard selection tests [core] Use describeTreeView for keyboard selection tests May 17, 2024
@mui-bot
Copy link

mui-bot commented May 17, 2024

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

Generated by 🚫 dangerJS against 18213bb

Copy link
Member

@michelengelen michelengelen left a comment

Choose a reason for hiding this comment

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

Covered a ton of different use-cases here! Very nice! :shipit:

@@ -59,6 +59,12 @@ const innerDescribeTreeView = <TPlugins extends TreeViewAnyPluginSignature[]>(

const isItemSelected = (id: string) => getItemRoot(id).getAttribute('aria-selected') === 'true';

const getSelectedTreeItems = () =>
Copy link
Member

Choose a reason for hiding this comment

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

very nice simplification! 👍🏼

@flaviendelangle flaviendelangle merged commit 99ad2ba into mui:master May 17, 2024
20 checks passed
@flaviendelangle flaviendelangle deleted the navigation-test-keyboard branch May 17, 2024 15:34
arthurbalduini pushed a commit to arthurbalduini/mui-x that referenced this pull request May 23, 2024
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