-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[TestModernization]: Add test modernization to Collapsible, Tabs and TextStyle #4453
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
Conversation
size-limit report
|
rdott
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
kyledurand
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks awesome @kpinzas-sh! Thanks so much 😄
Free to ship as is but I'm super curious what the domNode.click is needed for because I've never had to use that. Also I'd expect click to be a function so it seems like it's not getting called 🤷♂️
| ); | ||
| expect(textStyle.find('span').text()).toBe('Hello Polaris'); | ||
| const textStyle = mountWithApp(<TextStyle>Hello Polaris</TextStyle>); | ||
| expect(textStyle.find('span')).toContainReactText('Hello Polaris'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👋 Hello
Co-authored-by: Kyle Durand <kyledurand@users.noreply.github.com>
Co-authored-by: Kyle Durand <kyledurand@users.noreply.github.com>
WHY are these changes introduced?
I am updating existing tests for Collapsible, Tabs and TextStyle components to use the new modern framework. I worked with @rdott in solving several of the details here on those tests.
WHAT is this pull request doing?
Part of test modernization (https://docs.google.com/spreadsheets/d/1GBuEZbOpVYJLNISK7gL69DU8rCxocn5L5GYaKtPXPbU/edit#gid=1498187033), updating tests using {mountWithAppProvider} from 'test-utilities/legacy' to {mountWithApp} from 'test-utilities'.