Assert the declared owned-screen background colour
Some checks failed
review/design-claude B1/B2 fixed; settings pill dashed stroke 2x spec (blocking)

This commit is contained in:
justinzeus 2026-11-05 15:52:12 +01:00
parent 4b89a73908
commit 2ea9301069

View file

@ -132,7 +132,10 @@ class UpstreamContentFocusTest {
rule.mainClock.advanceTimeBy(1500) rule.mainClock.advanceTimeBy(1500)
rule.waitForIdle() rule.waitForIdle()
val on = rule.onRoot().captureToImage().toPixelMap()[1700, 900] val on = rule.onRoot().captureToImage().toPixelMap()[1700, 900]
assertTrue("Owned screens must cover the upstream backdrop", on.red < .02f && on.green < .02f && on.blue < .02f) val background = org.justinvisser.wolfskin.design.WolfskinTokens.Color.bg
org.junit.Assert.assertEquals("Owned background red", background.red, on.red, 1f / 255f)
org.junit.Assert.assertEquals("Owned background green", background.green, on.green, 1f / 255f)
org.junit.Assert.assertEquals("Owned background blue", background.blue, on.blue, 1f / 255f)
rule.onRoot().captureRoboImage(File(directory, "review-upstream-on.png").absolutePath) rule.onRoot().captureRoboImage(File(directory, "review-upstream-on.png").absolutePath)
} }
} }