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
The method FlutterGoldenTestAdapter.pumpGoldenTest sets a new pixelRatio and textScalorFactor test values that are not reset to the original values on tear down. This makes the test that run after a golden test to have modified properties that can alter the result of the test.
Is there an existing issue for this?
Version
0.4.1
Description
The method
FlutterGoldenTestAdapter.pumpGoldenTest
sets a new pixelRatio and textScalorFactor test values that are not reset to the original values on tear down. This makes the test that run after a golden test to have modified properties that can alter the result of the test.alchemist/lib/src/golden_test_adapter.dart
Lines 226 to 228 in a80c62c
We should clear values on tearDown:
Steps to reproduce
When running the following code, goldenTest sets up a new devicePixelRatio and the test after it fail.
Expected behavior
When clearing devicePixelRatio on tearDown, the test work as expected
Screenshots
Additional context and comments
No response
The text was updated successfully, but these errors were encountered: