Add some slack to screenshot tests.

This commit is contained in:
Greyson Parrelli 2026-06-24 13:57:21 -04:00 committed by jeffrey-signal
parent 141a128429
commit 5553ef6a99
No known key found for this signature in database
2 changed files with 10 additions and 0 deletions

View File

@ -128,6 +128,11 @@ ktlint {
version.set("1.5.0")
}
screenshotTests {
// Fraction of differing pixels tolerated before a screenshot test fails (0.0001 = 0.01%).
imageDifferenceThreshold = 0.0001f
}
android {
namespace = "org.thoughtcrime.securesms"

View File

@ -28,6 +28,11 @@ android {
experimentalProperties["android.experimental.enableScreenshotTest"] = true
}
screenshotTests {
// Fraction of differing pixels tolerated before a screenshot test fails (0.0001 = 0.01%).
imageDifferenceThreshold = 0.0001f
}
wire {
kotlin {
javaInterop = true