-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Components: Add HStack #28707
Components: Add HStack #28707
Conversation
199621f
to
4069f46
Compare
Size Change: +768 B (0%) Total Size: 1.36 MB
ℹ️ View Unchanged
|
Since this updates We still need to resolve the E2E font reset issue. Will try to look into that now |
ab7da23
to
68f5417
Compare
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.
🚀 from me!
@@ -86,8 +86,14 @@ describe( 'Font Size Picker', () => { | |||
); | |||
|
|||
await first( await page.$x( FONT_SIZE_LABEL_SELECTOR ) ).click(); | |||
|
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.
It feels like there is some sort of performance regression happening in the new component 🙁 Do you know why it takes longer than before?
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.
We don't. We may need to break out the react profiler for this one to check and see if there's something going on. There's no noticable regression in the UX, however, it's just from the perspective of the e2e tests. (This also doesn't have to do with the HStack component, FWIW, it's due to an update in G2 itself with the select dropdown to add Portaling to the dropdown component).
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.
It's acceptable to add those delays when there is a need to wait for network requests or animations but otherwise it should work in the headless mode without any additional changes. I think that there are three things that could help:
- React profiler can validate if there isn't happening some longer processing than before
- React dev tools can identify unnecessary rerenders
- in e2e tests we disable animations when they are behind reduced motion guard, maybe it is missing
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.
Sounds good to me. @ItsJonQ and I can put our heads together on this one this week to figure it out.
@@ -114,6 +120,10 @@ describe( 'Font Size Picker', () => { | |||
await pressKeyTimes( 'Backspace', 5 ); | |||
await page.keyboard.press( 'Enter' ); | |||
|
|||
// Disable reason: Wait for changes to apply. | |||
// eslint-disable-next-line no-restricted-syntax | |||
await page.waitForTimeout( 1000 ); |
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.
1 second to wait is a lot. It should be further investigated.
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.
I think this doesn't need to be 1 whole second @ItsJonQ ?
Description
Add G2's HStack component
How has this been tested?
Storybook story works and unit tests pass
Types of changes
New feature
Checklist: