From a978f7a6eb2cb7ac737a74b3c669581138d64c5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Mon, 28 Sep 2026 04:25:31 -0400 Subject: [PATCH] =?UTF-8?q?T42e=20Misc=20=C2=B7=20Terms=20and=20notices=20?= =?UTF-8?q?passes=20review?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit A test walks Shift-Tab round the cookie banner past the resting Necessary switch. --- TASKS.md | 4 +++- src/misc/tests/notices.rs | 9 +++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/TASKS.md b/TASKS.md index 380428a..f5a36d2 100644 --- a/TASKS.md +++ b/TASKS.md @@ -144,7 +144,7 @@ Per-component lines live in `tasks/`. Tags there: - [x] T42b Misc · Numbers — `tasks/ch31-43.md` - [x] T42c Misc · Codes and checks — `tasks/ch31-43.md` - [x] T42d Misc · Asking and learning — `tasks/ch31-43.md` -- [ ] T42e Misc · Terms and notices — `tasks/ch31-43.md` +- [x] T42e Misc · Terms and notices — `tasks/ch31-43.md` - [ ] T42f Misc · Web — `tasks/ch31-43.md` - [ ] T42g Misc · Export and import — `tasks/ch31-43.md` - [ ] T43 Library Tooling @@ -456,3 +456,5 @@ Per-component lines live in `tasks/`. Tags there: | T42c | 2 | PASS | three claims untested; tests for focus after an answer and a resting pass added in the pass commit | | T42d | 1 | FAIL | a pointer's untick disabled Submit while it held focus, so focus fell to the root; six claims untested; radio labels ran past a 280px box | | T42d | 2 | PASS | the poll's mark and its selector now share one binding | +| T42e | 1 | FAIL | the code held, but seven claims had no test: Decline, the scrim, focus back after Accept, necessary cookies on and resting, the list's mark and its rows' lines | +| T42e | 2 | PASS | a Tab-path check for the resting Necessary switch added in the pass commit | diff --git a/src/misc/tests/notices.rs b/src/misc/tests/notices.rs index a41750c..dc8fc6b 100644 --- a/src/misc/tests/notices.rs +++ b/src/misc/tests/notices.rs @@ -195,4 +195,13 @@ fn a_cookie_banner_hands_over_the_kinds_chosen(cx: &mut TestAppContext) { said(), [r#"["Analytics", "Marketing"]"#, "[]", r#"["Marketing"]"#] ); + for _ in 0..5 { + press("shift-tab", cx); + } + press("space", cx); + assert_eq!( + said().len(), + 4, + "Shift-Tab went round past the resting Necessary switch to Save choices" + ); }