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] Stay busy until document.fonts is ready #23736

Merged
merged 2 commits into from
Nov 27, 2020

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented Nov 26, 2020

Still experiencing flaky tests when a single tests loads some additional web fonts.

So we're now leveraging FontFaceSet and listen to loading and loadingdone events. In these events we flip the ready state depending on document.fonts.status. Hopefully this resolves the last issues.

It's an experimental feature but shipped by browsers supported by playwright.

@mui-pr-bot
Copy link

mui-pr-bot commented Nov 26, 2020

No bundle size changes

Generated by 🚫 dangerJS against 18edc5c

@eps1lon eps1lon marked this pull request as ready for review November 26, 2020 17:14
Copy link
Member

@oliviertassinari oliviertassinari left a comment

Choose a reason for hiding this comment

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

This one might be tricky to solve as not reproducing often.

@eps1lon
Copy link
Member Author

eps1lon commented Nov 27, 2020

This one might be tricky to solve as not reproducing often.

I'm just going to claim this solved it if we never see it again 😁

@eps1lon eps1lon merged commit cd0bfd8 into mui:next Nov 27, 2020
@eps1lon eps1lon deleted the test/flaky-fonts branch November 27, 2020 09:37
@eps1lon
Copy link
Member Author

eps1lon commented Nov 29, 2020

This one might be tricky to solve as not reproducing often.

I'm just going to claim this solved it if we never see it again 😁

Looks like it didn't fix it 100%: https://www.argos-ci.com/mui-org/material-ui/builds/5769

Though it does seem to have reduced flakiness.

@oliviertassinari
Copy link
Member

oliviertassinari commented Nov 29, 2020

Maybe we should give up on this one. What about we skip the visual test?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants