Files
hemx/work/slices/SLICE-0002-browser-runtime-confidence.md
T
slhx agent 379ed02f88 fix(html-examples): make progress click-driven
Remove interval auto-ticking from the progress example, render visible percentage text next to the native progress element, and update smoke coverage to assert explicit click behavior.

req: htmx_equivalents/001

req: examples/001

req: test/006
2026-06-26 07:47:07 +02:00

41 lines
1.8 KiB
Markdown

---
id: SLICE-0002
type: slice
status: done
parent: NS-0001
title: Keep html_examples browser smoke as runtime confidence proof
refs:
- REQUIREMENTS.md
- hemx-xtask/src/main.rs
- examples/html_examples/README.md
- examples/html_examples/src/main.rs
---
## Objective
Keep `html-examples-smoke` as the repo-owned browser proof for no-reload dynamic interactions, explicit progress clicks, revealed fallback, and the htmx-equivalent gallery behaviors.
## Authority
`REQUIREMENTS.md` `test/006`, `test/013`, `test/014`, `convention/005`, `convention/014`, and `examples/012` constrain the smoke: no `/tmp` scripts, no navigation/reload fallback, and deterministic browser coverage.
## Close when
- The smoke covers click-to-edit, edit-row, inline validation, active search, delete row, lazy load, click-to-load, infinite/reveal, explicit progress click, value select, reset input, and revealed fallback without IntersectionObserver.
- The no-navigation/no-reload guard wraps dynamic interactions.
- Failures identify the named smoke path.
## Verification
- `cargo test -p hemx-xtask`
- `cargo run -p hemx-xtask -- html-examples-smoke`
## Non-goals
- Do not add Playwright, Selenium, or a second browser runner without a separate decision.
- Do not move smoke scripts to `/tmp` or untracked files.
## Evidence
Done at HEAD `67d167f`, then corrected for manual progress behavior: `cargo run -p hemx-xtask -- html-examples-smoke` covers explicit progress click, click-to-edit, edit-row, inline validation, active search, delete row, lazy load, click-to-load, infinite/reveal, value select, reset input, and revealed fallback without IntersectionObserver. `hemx-xtask/src/main.rs` owns the CDP-driven smoke command, inline smoke scripts, and no-navigation/no-reload guard; no `/tmp` scripts or second browser runner were added.