From 431d1248cc3efea5ee299f15ae4dafaccf44531a Mon Sep 17 00:00:00 2001 From: Sebastien Pouliot Date: Mon, 4 Nov 2024 13:48:35 -0500 Subject: [PATCH] fix(tests): Tolerate 2 pixels diff (happens on CI) for Check_FontFallback_Shaping --- .../Tests/Windows_UI_Xaml_Controls/Given_TextBlock.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_TextBlock.cs b/src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_TextBlock.cs index 78dbed3c175c..24a78da5540b 100644 --- a/src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_TextBlock.cs +++ b/src/Uno.UI.RuntimeTests/Tests/Windows_UI_Xaml_Controls/Given_TextBlock.cs @@ -182,8 +182,8 @@ public async Task Check_FontFallback_Shaping() await UITestHelper.Load(expected); var screenshot2 = await UITestHelper.ScreenShot(expected); - // we tolerate a 1 pixel difference between the bitmaps due to font differences - await ImageAssert.AreSimilarAsync(screenshot1, screenshot2, imperceptibilityThreshold: 0.18, resolutionTolerance: 1); + // we tolerate a 2 pixels difference between the bitmaps due to font differences + await ImageAssert.AreSimilarAsync(screenshot1, screenshot2, imperceptibilityThreshold: 0.18, resolutionTolerance: 2); } #endif