Flake in all visual tests which conditionally render components with svg icons #2377
Labels
🤖 aspect: dx
Concerns developers' experience with the codebase
🛠 goal: fix
Bug fix
🟥 priority: critical
Must be addressed ASAP
🧱 stack: frontend
Related to the Nuxt frontend
Description
Any test which renders a new piece of UI mid-test which contains SVG icons can be subjected to flake in which the icons do not appear visually. Annoyingly, the Playwright trace viewer shows the SVG is "rendered" in the dom, but the link in the "use" blocks of these sprite-based SVGs do not appear to be loaded.
This is very likely likely related to #2135 from @obulat but feels very difficult to fix. I've spent hours investigating today and haven't been successful.
Reproduction
Some examples of runs with this issue:
e2e/header-internal.spec.ts:83:9 › Header internal › screen at breakpoint xs with width 340 › content page opened from home should be scrollable
: https://github.com/WordPress/openverse/actions/runs/5226301308/jobs/9436844836Screenshots
Environment
Additional context
The text was updated successfully, but these errors were encountered: