Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
Loading