-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[Test modernization] on TopBar components tests #4311
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
|
f29f4ee to
d6809dd
Compare
d6809dd to
3075259
Compare
| it('renders with the given props', () => { | ||
| const userMenu = mountWithAppProvider(<UserMenu {...userMenuProps} />); | ||
| expect(userMenu.find(UserMenu).props()).toStrictEqual(userMenuProps); | ||
| const userMenu = mountWithApp(<UserMenu {...userMenuProps} />); |
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.
This is the only big change that I am doing, but not sure if this makes sense to test that the props are being render.
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.
This makes sense to me
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.
Couple of small comments, but otherwise it looks good!
Co-authored-by: Richard T <richard.todd@shopify.com>
Co-authored-by: Richard T <richard.todd@shopify.com>
WHY are these changes introduced?
I am updating existing tests for Message, Menu, Search, SearchDismissOverlay, SearchField, UserMenu and TopBar components to use the new modern framework.
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'.