From c94ab1a05f0444769d020e6e9b02d159fb26bddc Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Tue, 17 Nov 2026 03:27:50 +0100 Subject: [PATCH] :paperclip: Read the WASM replay's query parameters as the page loads A replayed step that navigates replaces the page's query string, so the replay read its `debug` and `watch` parameters as unset from then on and logged no shapes at the end of such a program. It reads them once, as the page loads. Harness only; the benchmark is not run. AI-assisted-by: claude-opus-5-5 --- frontend/test/frontend_tests/wasm_replay.cljs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/test/frontend_tests/wasm_replay.cljs b/frontend/test/frontend_tests/wasm_replay.cljs index 4fa8e7c207..882c7dfdcd 100644 --- a/frontend/test/frontend_tests/wasm_replay.cljs +++ b/frontend/test/frontend_tests/wasm_replay.cljs @@ -34,9 +34,13 @@ [potok.v2.core :as ptk] [promesa.core :as p])) +;; the page's query parameters as it loads, before a replayed step navigates +(def ^:private page-params + (js/URLSearchParams. (.. js/globalThis -location -search))) + (defn- query-param [name] - (.get (js/URLSearchParams. (.. js/globalThis -location -search)) name)) + (.get page-params name)) (defn- programs-uri "The programs file the page names in its `programs` query parameter: EDN