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] Isolate Tooltip tests more #24834

Merged
merged 1 commit into from Feb 8, 2021
Merged

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented Feb 8, 2021

No need to test it with <Input />. If it would be important it should be part of the integration test suite.

The goal is to reduce the number of style tags in the DOM which speeds up style computation in JSDOM.

@eps1lon eps1lon added test component: tooltip This is the name of the generic UI component, not the React module! labels Feb 8, 2021
@@ -477,6 +477,7 @@ describe('<Tooltip />', () => {
});

expect(getByRole('tooltip')).toBeVisible();
expect(handleFocus.callCount).to.equal(1);
Copy link
Member Author

Choose a reason for hiding this comment

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

To match the test description "should handle autoFocus + onFocus forwarding". The "+ onFocus forwarding" part was not tested as far as I can tell.

@mui-pr-bot
Copy link

mui-pr-bot commented Feb 8, 2021

No bundle size changes

Generated by 🚫 dangerJS against f95d1aa

@eps1lon eps1lon marked this pull request as ready for review February 8, 2021 07:32
@eps1lon eps1lon merged commit 96a4f0c into mui:next Feb 8, 2021
@eps1lon eps1lon deleted the test/Tooltip/perf branch February 8, 2021 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: tooltip This is the name of the generic UI component, not the React module! test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants