Adaptive extension
Extend WidgetTester with the expectGolden method, providing the ability to assert golden matching for a given WindowConfigData.
Golden file previews are stored within the "preview" folder.
Because adaptive rendering depends on the targeted platform, we need to make
sure the platform running the current test matches the
enforcedTestPlatform
defined in the AdaptiveTestConfiguration.
- on
Methods
-
expectGolden<
T> (WindowConfigData windowConfig, {String? suffix, Key? byKey, bool waitForImages = true}) → Future< void> - Visual regression test for a given WindowConfigData.