Skip to content

test: fix lazy-font race condition in expectScreenshot#1053

Open
makhnatkin wants to merge 1 commit intomainfrom
chore/fix-flapy-test
Open

test: fix lazy-font race condition in expectScreenshot#1053
makhnatkin wants to merge 1 commit intomainfrom
chore/fix-flapy-test

Conversation

@makhnatkin
Copy link
Copy Markdown
Collaborator

@makhnatkin makhnatkin commented Apr 10, 2026

  • updated autocomplete snapshots: now show correct Ubuntu Mono font stack
  • added waitForLoadState('networkidle') before document.fonts.ready in expectScreenshot. This ensures lazy CSS chunks finish loading and their font file downloads settle before fonts readiness is checked, so document.fonts.ready either resolves immediately or waits only for already-tracked requests.

@makhnatkin makhnatkin requested a review from d3m1d0v as a code owner April 10, 2026 07:43
@gravity-ui
Copy link
Copy Markdown

gravity-ui bot commented Apr 10, 2026

Storybook Deployed

@gravity-ui
Copy link
Copy Markdown

gravity-ui bot commented Apr 10, 2026

🎭 Playwright Report

@makhnatkin makhnatkin force-pushed the chore/fix-flapy-test branch 4 times, most recently from 420dd80 to 3ee0cc7 Compare April 10, 2026 15:17
@makhnatkin makhnatkin changed the title test: add wait.yfmFontsReady fixture to fix flaky font race test: fix flaky font race Apr 10, 2026
@makhnatkin makhnatkin changed the title test: fix flaky font race test: fix lazy-font race condition in expectScreenshot Apr 10, 2026
@makhnatkin makhnatkin changed the title test: fix lazy-font race condition in expectScreenshot test: fix lazy-font race condition in expectScreenshot Apr 10, 2026
@makhnatkin makhnatkin force-pushed the chore/fix-flapy-test branch from 3ee0cc7 to 0d3e969 Compare April 10, 2026 15:30
@makhnatkin makhnatkin changed the title test: fix lazy-font race condition in expectScreenshot test: fix lazy-font race condition in expectScreenshot Apr 10, 2026
@makhnatkin makhnatkin force-pushed the chore/fix-flapy-test branch 4 times, most recently from ab2e7d7 to 35328a4 Compare April 10, 2026 22:50
@makhnatkin makhnatkin force-pushed the chore/fix-flapy-test branch from 35328a4 to 8b1743d Compare April 11, 2026 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant