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

fix(tests) Try to stabilize vitals snapshots #22696

Merged
merged 2 commits into from
Dec 16, 2020
Merged

Conversation

markstory
Copy link
Member

The web vitals summary snapshots have been a bit flaky lately. Add better loading indicators to charts so we can wait for page transitions better. The loading-stats string doesn't exist in the frontend code so the checks we were doing did nothing.

The web vitals summary snapshots have been a bit flaky lately.
Add better loading indicators to charts so we can wait for page
transitions better. The `loading-stats` string doesn't exist in the
frontend code so the checks we were doing did nothing.
@markstory markstory requested review from billyvg and a team December 15, 2020 21:44
Comment on lines +12 to +21
const TransparentLoadingMask = styled(
({className, visible, children, ...props}: Props) => {
const other = visible ? {...props, 'data-test-id': 'loading-placeholder'} : props;
return (
<LoadingMask className={className} {...other}>
{children}
</LoadingMask>
);
}
)<Props>`
Copy link
Member

Choose a reason for hiding this comment

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

Ugh, I hate how noisy this can get when we're mostly just trying to add a prop. Wonder if we should add something like this emotion-js/emotion#821 (comment)

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes it is a lot of ceremony for conditionally adding one property.

@markstory markstory merged commit 2b22a5d into master Dec 16, 2020
@markstory markstory deleted the fix/stabilize-perf-test branch December 16, 2020 16:04
@github-actions github-actions bot locked and limited conversation to collaborators Jan 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants