feat(examples): add workout replay e2e

Wrap the workout page with the shared runtime, add export replay over command/event truth, and cover the running HTTP app with an end-to-end test that exercises runtime asset loading and product interactions.

req: examples/001

req: local/001

req: local/003

req: local/004

req: host/001
This commit is contained in:
slhx agent
2026-06-11 21:02:50 +02:00
parent 18095ea742
commit d5b74496ab
5 changed files with 339 additions and 2 deletions
+10
View File
@@ -0,0 +1,10 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>hemx workout example</title>
<script +src="self.runtime_src" defer></script>
</head>
<body>{+= self.body =+}</body>
</html>
+3
View File
@@ -21,6 +21,9 @@
<section class="local-truth">
<h2>Private event log</h2>
<pre data-hemx-slot="event_log">{+ self.event_log +}</pre>
<h3>Replay export</h3>
<pre data-hemx-slot="export_payload">{+ self.export_payload +}</pre>
<button type="button" data-hemx-handle="replay_export">Replay exported log</button>
</section>
<section class="host">