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] Convert NativeSelectInput tests to testing-library #26952

Merged
merged 1 commit into from
Jun 29, 2021

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented Jun 25, 2021

Based on #26949 (diff)

Part of #22911

Last tests where we can switch from enzyme. The remaining test need enzyme. Not converting the JSS tests since I consider them legacy at this point and don't want them to block React 18 efforts in case JSS has issues with concurrent rendering.

@eps1lon eps1lon added the test label Jun 25, 2021
@@ -4,7 +4,7 @@ import { Theme } from '..';

export interface NativeSelectInputProps extends React.SelectHTMLAttributes<HTMLSelectElement> {
disabled?: boolean;
IconComponent?: React.ElementType;
IconComponent: React.ElementType;
Copy link
Member Author

Choose a reason for hiding this comment

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

Drive-by change. The prop types aren't auto generated so this slipped through.

@eps1lon eps1lon changed the title [test] Add a default mount implementation to conformance tests [test] Convert NativeSelectInput tests to testing-library Jun 25, 2021
@mui-pr-bot
Copy link

mui-pr-bot commented Jun 25, 2021

No bundle size changes (experimental)

Generated by 🚫 dangerJS against 6d7fcdf

@eps1lon eps1lon force-pushed the test/NativeSelectInput/testing-library branch from 445d3a6 to b978454 Compare June 25, 2021 08:27
@eps1lon eps1lon marked this pull request as ready for review June 25, 2021 08:47
@eps1lon eps1lon marked this pull request as draft June 25, 2021 09:48
@github-actions github-actions bot added the PR: out-of-date The pull request has merge conflicts and can't be merged label Jun 26, 2021
@eps1lon eps1lon force-pushed the test/NativeSelectInput/testing-library branch from b978454 to 6d7fcdf Compare June 28, 2021 10:01
@github-actions github-actions bot removed the PR: out-of-date The pull request has merge conflicts and can't be merged label Jun 28, 2021
@eps1lon eps1lon marked this pull request as ready for review June 28, 2021 10:58
@eps1lon eps1lon merged commit 1027f60 into mui:next Jun 29, 2021
@eps1lon eps1lon deleted the test/NativeSelectInput/testing-library branch June 29, 2021 06:03
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.

2 participants