diff --git a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue22306.cs b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue22306.cs index a5e9bfeb3ea3..07edf36c00cf 100644 --- a/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue22306.cs +++ b/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue22306.cs @@ -46,7 +46,9 @@ public void ButtonsLayoutResolveWhenParentSizeChanges() App.SetOrientationPortrait(); WaitForAllElements(); // Cannot use the original screenshot as the black bar on bottom is not as dark after rotation - VerifyScreenshot(TestContext.CurrentContext.Test.MethodName + "Original2", tolerance: 0.5, retryTimeout: TimeSpan.FromSeconds(2)); + // Android can consistently rerasterize the same post-rotation layout with minor antialiasing differences. + var finalPortraitTolerance = _testDevice == TestDevice.Android ? 2 : 0.5; + VerifyScreenshot(TestContext.CurrentContext.Test.MethodName + "Original2", tolerance: finalPortraitTolerance, retryTimeout: TimeSpan.FromSeconds(2)); } finally {