You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Web Golden Testing] Support local golden testing and DPR alignment in flutter_tools and framework #191371
In #191314 (resolved by #191318), we implemented local screenshot and golden baseline diffing for Web Engine unit tests (felt test) using Skia Gold's REST API and in-memory pixel diffing.
Framework web tests run via flutter test --platform=chrome, which executes through packages/flutter_tools. We need to bring parity to flutter_tools and framework web golden testing as a separate follow-up step.
In packages/flutter_tools/lib/src/web/chrome.dart, headless Chrome starts without explicit device scale factor flags, defaulting to DPR = 1.0, while packages/flutter_test/lib/src/_test_selector_web.dart overrides DPR to 3.0 in web test environments.
Update packages/flutter_tools to pass --force-device-scale-factor and ensure browser device emulation matches framework expectations.
Skia Gold REST Baselines for Framework Goldens:
Update package:flutter_goldens / flutter_goldens_web to retrieve baselines from Skia Gold's REST API and perform local comparison.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
[web] Support local golden testing in flutter test (flutter#191386)
github-actions commentedon Sep 23, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.