Skip to content

Commit

Permalink
fix(tests): Tolerate 2 pixels diff (happens on CI) for Check_FontFall…
Browse files Browse the repository at this point in the history
…back_Shaping
  • Loading branch information
spouliot committed Nov 4, 2024
1 parent 647a7ac commit 431d124
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 431d124

Please sign in to comment.