[object Object]

← back to build-pages

smoke: assert /p/:slug?q= hydrates search input on server-render

f8e102d961837f3c32125e6441b683b70f74bfe9 · 2026-05-13 12:54:38 -0700 · SteveStudio2

Files touched

Diff

commit f8e102d961837f3c32125e6441b683b70f74bfe9
Author: SteveStudio2 <stevestudio2@SteveStacStudio.lan>
Date:   Wed May 13 12:54:38 2026 -0700

    smoke: assert /p/:slug?q= hydrates search input on server-render
---
 test/smoke.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/test/smoke.js b/test/smoke.js
index 83fd897..e936b9e 100644
--- a/test/smoke.js
+++ b/test/smoke.js
@@ -76,6 +76,10 @@ function check(name, cond, hint = '') {
   check('butlr: commit list',      /commits indexed/.test(r.body));
   check('butlr: search input',     /id="q"/.test(r.body));
 
+  // 6b. ?q= deep-link hydrates the search input on server-render
+  r = await fetch('/p/butlr?q=whisper');
+  check('butlr ?q=: hydrated',     /value="whisper"/.test(r.body));
+
   // 7. unknown project → 404
   r = await fetch('/p/nope-not-a-project');
   check('unknown project: 404',    r.status === 404);

← 9cd86d6 search: ?q= deep-link — input hydrates from URL + replaceSta  ·  back to build-pages  ·  perf: cache commit bundle per-repo, keyed on HEAD SHA — page b4e3a28 →