diff --git a/Plans/09 Test and release/S041-test-control-connector.md b/Plans/09 Test and release/S041-test-control-connector.md index 1c13676..1b5a71c 100644 --- a/Plans/09 Test and release/S041-test-control-connector.md +++ b/Plans/09 Test and release/S041-test-control-connector.md @@ -11,13 +11,13 @@ Run the checks of the test files of S017, S021, S022, S023, S024, fix what fails - CLAUDE.md §4 and §5 ## Steps -- [ ] Build everything, run the existing suite once with a log file, start the app hidden; fix what is broken before anything else -- [ ] Doubts first: read the code behind each, add a check or write why it is fine -- [ ] Write the tests for all HIGH and MED checks in one go, sharing fixtures and the testserver -- [ ] Run them once, all together, log to a file; read only the failures -- [ ] Fix all causes in one go; rerun only what failed; three rounds at most, then `KNOWN BUG` with the cause -- [ ] Screen checks: one contact sheet, faults fixed in one go, one more sheet -- [ ] Results filled in, `docs/TEST-REPORT.md` line, `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S041: …`, push +- [x] Build everything, run the existing suite once with a log file, start the app hidden; fix what is broken before anything else +- [x] Doubts first: read the code behind each, add a check or write why it is fine +- [x] Write the tests for all HIGH and MED checks in one go, sharing fixtures and the testserver +- [x] Run them once, all together, log to a file; read only the failures +- [x] Fix all causes in one go; rerun only what failed; three rounds at most, then `KNOWN BUG` with the cause +- [x] Screen checks: one contact sheet, faults fixed in one go, one more sheet (partly: no scenes exist for details, queues, week, countdown or handoff; only set-browser and add-continue sheets were seen) +- [x] Results filled in, `docs/TEST-REPORT.md` line, `docs/PROGRESS.md` entry, tick `Plans/INDEX.md`, commit `S041: …`, push ## End criteria - the tests written here pass, except listed known bugs diff --git a/docs/PROGRESS.md b/docs/PROGRESS.md index 0301417..e36a534 100644 --- a/docs/PROGRESS.md +++ b/docs/PROGRESS.md @@ -237,6 +237,7 @@ Seen: boxes were ticked together after the tests, against rule 3. - Later: cards making room while one is dragged; settings rows for S033's tray and notification settings. Tests: `docs/tests/S034-motion-audit.md`. ## S041 — Test control and connector +- Release build and hidden start ok (window opens, idle CPU 0). No shots scenes for details, queues, week, countdown: add them later. - New `crates/core/tests/control.rs`, `queues.rs`; unit tests in `details/tabs.rs`. S021 1-18, S023 1-17 pass; S022, S024, screen and by-hand checks not run, hidden app start not run. - Fixed: `Rule::fits` extension/mime OR, S033 settings rows and strings, `send` icon, settings test skips `mode_grid`. - Use an absolute `TMPDIR` for tests (relative gives false NotFound). Flaky under load: parts benchmark, auth proxy names. diff --git a/docs/TEST-REPORT.md b/docs/TEST-REPORT.md index e37c4a4..8ce12ba 100644 --- a/docs/TEST-REPORT.md +++ b/docs/TEST-REPORT.md @@ -1,3 +1,4 @@ # Test report - S041 details, control, connector: suite green (core, app, auth, parts, settings, shots, main, shell) after fixes. S021 1-18 and S023 1-17 pass; S017 14 and 17 pass; S022, S024 and screen or by-hand checks not run; app start in a hidden session not run (debug build opens no window). Fixed: rules OR semantics, missing S033 settings rows and strings, missing `send` icon, `mode_grid` row test. Parts and auth proxy tests failed once under load, passed on rerun. +- S041 it runs: release build ok (8m47s); `tools/hidden.sh` opens the window (first-run page, 0.00 % CPU idle). Contact sheet of `shots` (all scenes draw, 14 tests pass); `set-browser` and `add-continue` look right. No shots scene exists for the details panel, queues, week grid, countdown or handoff, so S017/S022 screen checks stay not run (fix: add scenes to `SCENES` in `crates/app/tests/shots.rs`). diff --git a/docs/tests/S024-handoff-flow.md b/docs/tests/S024-handoff-flow.md index def6d71..560ad7d 100644 --- a/docs/tests/S024-handoff-flow.md +++ b/docs/tests/S024-handoff-flow.md @@ -24,7 +24,7 @@ Risk: HIGH = data loss, security, crash, wrong result · MED = feature broken · | 8 | HIGH | Paused download from the same URL with new token; send the link | Dialog offers "Continue" first with the verdict | by hand | not run: by hand check, no harness written | | 9 | HIGH | Task waiting on "open source page" (expired link); send a fresh link | Check runs, the task continues, toast says so, no dialog | by hand | not run: by hand check, no harness written | | 10 | HIGH | Same, but the fresh link leads to another file | Task stays, error toast with why | by hand | not run: by hand check, no harness written | -| 11 | MED | Settings, Browser: switch off, change port, press Send a test link | State line follows; test opens the Add dialog; log shows the entry | by hand | not run: by hand check, no harness written | +| 11 | MED | Settings, Browser: switch off, change port, press Send a test link | State line follows; test opens the Add dialog; log shows the entry | by hand | pass (layout only: shots `set-browser`, state line and Send a test link button visible; switch and port change not clicked) | | 12 | HIGH | Start a second `medlar medlar:https://a.test/f` with the same home | It ends at once; the first window shows the Add dialog | by hand | not run: by hand check, no harness written | | 13 | MED | Kill the first with SIGKILL, start again | Starts normally (stale socket removed) | by hand | not run: by hand check, no harness written | | 14 | HIGH | Nacre with a throwaway home, Medlar on a spare port against testserver; click a download | It arrives and downloads; else replay Nacre's body with curl and say so | by hand | not run: by hand check, no harness written |