fix(android): pin the version in the settings screenshot

The Settings index shows the installed version, read from the package,
so the committed image held 0.5.1 and the 1.0.0 bump failed the
screenshot check. SettingsScreen takes the version as a parameter that
defaults to the package's, and the test passes a fixed one.
This commit is contained in:
nvrl committed 2026-10-03 14:24:32 +02:00
1 parent 7914cf4dc1
commit bedbe0ef52
3 files changed
+6 -3

No files matched your search

@@ -139,7 +139,7 @@ class ScreenshotTest {
@Test
fun `the settings page`() = capture("settings-phone") {
SettingsScreen(LIBRARY, { _, _, _, _ -> }, {}, {}, {}, PaddingValues())
SettingsScreen(LIBRARY, { _, _, _, _ -> }, {}, {}, {}, PaddingValues(), version = "1.0.0")
}
@Test