Housekeeping browser test: a change from elsewhere lands live
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 file changed,
+8
−0
internal/thintest/housekeeping_browser_test.go+8 −0
diff --git a/internal/thintest/housekeeping_browser_test.go b/internal/thintest/housekeeping_browser_test.go| index faef4bfd..59dcb8dc 100644 |
| --- a/internal/thintest/housekeeping_browser_test.go |
| +++ b/internal/thintest/housekeeping_browser_test.go |
| @@ -105,6 +105,14 @@ func TestBrowserHousekeeping(t *testing.T) { |
| p.click(`[data-detector="duplicate_possible"] [data-hk-detector-off]`) |
| p.wait(`document.querySelector('[data-detector="duplicate_possible"][data-off]')`, "detector off") |
| p.stayed("a detector switch") |
| + // A change made elsewhere (another device) carries only a housekeeping |
| + // event: the view follows it too. |
| + h := r.housekeeping() |
| + if _, err := r.client.SetDetector(r.ctx, "duplicate_possible", true, h.Revision); err != nil { |
| + t.Fatal(err) |
| + } |
| + p.wait(`document.querySelector('[data-detector="duplicate_possible"]:not([data-off])')`, "switched on elsewhere, live") |
| + p.stayed("a change from elsewhere") |
| p.shot("hk-view-undone-1280") |
| // Settings' Housekeeping section, at both sizes: Pause, quiet hours |