Task 188: Fix Orbital Animation Example Page and Harden E2E Tests
完了 ← タスク一覧
Task 188: Fix Orbital Animation Example Page and Harden E2E Tests
Status: DONE
Goal
The standalone orbital animation example page (ts/examples/orbital-animation.html) has a stale selector. The page uses <text data-animation-config> to embed animation data, but orbital-animation.js looks for .orbital-animation-data (a class-based selector on a <script> element). This means the example page's animation is non-functional — the JS silently returns when it can't find the data element.
Additionally, the existing E2E test for this example page (ts/e2e/examples.spec.ts) only checks that the SVG renders and data-animated="true" is present, but does NOT verify that the ship marker actually moves.
Tasks
- Fix the animation data element in
orbital-animation.htmlto use the correct selector pattern (.orbital-animation-dataclass on a<script type="application/json">element) - Add/update E2E test in
examples.spec.tsto verify that animation actually plays (ship marker position changes after play) - Verify all tests pass
Context
- Task 131 added unit tests for arrival alignment, but the example page was never updated to match the new selector pattern
- The real report pages use
<script type="application/json" class="orbital-animation-data">(generated by templates.ts) - The JS (
orbital-animation.jsline 134) queriescard.querySelector(".orbital-animation-data")