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

visual-regression/v-header-internal.spec.ts:36:11 › VHeaderInternal › screen at breakpoint xs with width 340 › mobile-header-internal-modal-ltr is flaky #3714

Closed
sarayourfriend opened this issue Jan 29, 2024 · 4 comments · Fixed by #3759
Assignees
Labels
💻 aspect: code Concerns the software code in the repository 🛠 goal: fix Bug fix 🟥 priority: critical Must be addressed ASAP 🧱 stack: frontend Related to the Nuxt frontend

Comments

@sarayourfriend
Copy link
Contributor

Description

visual-regression/v-header-internal.spec.ts:36:11 › VHeaderInternal › screen at breakpoint xs with width 340 › mobile-header-internal-modal-ltr is flaky.

It fails in this run: https://github.com/WordPress/openverse/actions/runs/7699638405/job/20981848020

And passes in this run: https://github.com/WordPress/openverse/actions/runs/7699638405/job/20983730568

@sarayourfriend sarayourfriend added 🟥 priority: critical Must be addressed ASAP 🛠 goal: fix Bug fix 💻 aspect: code Concerns the software code in the repository 🧱 stack: frontend Related to the Nuxt frontend labels Jan 29, 2024
@sarayourfriend
Copy link
Contributor Author

I had this fail again in another PR and remembered to grab the test results artefact.

It looks like the same font rendering issue that @obulat fixed in the other playwright tests. I bet #3713 is too?

storybook_test_results.zip

@obulat
Copy link
Contributor

obulat commented Feb 6, 2024

Yes, @sarayourfriend, this does look like a font rendering issue. We should probably add a wait to this test.

@sarayourfriend
Copy link
Contributor Author

sarayourfriend commented Feb 6, 2024

How does that work, Olga? Is there an example to go off of in the repo for how we've done it before?

@obulat obulat mentioned this issue Feb 6, 2024
8 tasks
@obulat
Copy link
Contributor

obulat commented Feb 6, 2024

How does that work, Olga? Is there an example to go off of in the repo for how we've done it before?

I meant adding await sleep(500), @sarayourfriend, as I did in #3759. This is not ideal, but there is no event we can use to check if the fonts loaded.

Edited to add: Now that I think of it, we can detect a request for fonts. But this only works for the internal header pages modal. The other test does not send a font request, and since there is no trace file, I can't say what's wrong with it. Hope additional sleep can help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💻 aspect: code Concerns the software code in the repository 🛠 goal: fix Bug fix 🟥 priority: critical Must be addressed ASAP 🧱 stack: frontend Related to the Nuxt frontend
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants