From aa046a7ee11a20914a5851dd0e5a89d129683b28 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Tue, 27 Oct 2026 07:46:46 +0000 Subject: Start testing the Compose screens The dependencies for this were already in the build -- ui-test-junit4 on androidTest, ui-test-manifest on debug -- and had never been used. So the spike was one test, and it passed first run. Eighteen now. What they cover is the data-driven composables, chosen because a regression in them looks completely normal: a readout that quietly stops printing one of its three numbers, a control that stops reporting whether it will play or pause, a bar that stops naming what is playing while a screen shows something else. The episode transport: the ad button is offered only while something is playing, because with nothing playing there is no advertising to be in the middle of and an enabled button would record a claim about a position nobody is at. The primary control says what pressing it will do. The skip buttons move by the amount they advertise. The skip readout: all three numbers on one line, the status when there is nothing to cut -- "nothing found" and "not checked yet" being different answers is the mistake the old readout made -- and a legend that names only what is actually on the track. The now-playing bar: names the episode and the show, opens what is playing when tapped, and reports play against pause. Screens that need view models are still verified by eye. This is the half that did not need them. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_018AwnALZL6bD4VBtATDVv3B --- .../plans/2026-10-20-corrections-and-signature-library.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'docs/superpowers') diff --git a/docs/superpowers/plans/2026-10-20-corrections-and-signature-library.md b/docs/superpowers/plans/2026-10-20-corrections-and-signature-library.md index 331e883..687a293 100644 --- a/docs/superpowers/plans/2026-10-20-corrections-and-signature-library.md +++ b/docs/superpowers/plans/2026-10-20-corrections-and-signature-library.md @@ -386,8 +386,13 @@ everything measured, though not directly caught in a probe. ## Known gaps, deliberate -- **Compose has no automated coverage** — no Robolectric. Everything visual is verified by eye on - the emulator only. +- **Compose now has automated coverage — started 2026-10-27.** Eighteen tests over the episode + transport, the skip readout and the now-playing bar, run on the emulator with + `createComposeRule`. The dependencies for this were already in the build and had never been + used, so it cost one test to find out rather than a spike. Screens that need view models are + still checked by eye; what is covered is the data-driven composables, where a regression would + look completely normal — a readout quietly dropping one of its three numbers, or a control that + stops reporting its state. - **The rejected-token notice is written down — fixed 2026-10-27.** It lives in the preferences file now, so it is on the Settings screen at launch rather than after the next refresh has gone and been refused all over again. Saving *different* credentials clears it at once; saving the -- cgit v1.2.3