⚠ ネタバレ注意: 本サイトはSFアニメ「SOLAR LINE」の内容を詳細に分析しています。未視聴の方はご注意ください。
📝 AI生成コンテンツ: 本考証の大部分は AI(Claude Code 等)によって生成されています。内容の正確性については原作および引用元をご確認ください。

Task 620: Fix Inline 3D Viewer Initialization in Episode Pages + E2E Tests

完了 ← タスク一覧

Task 620: Fix Inline 3D Viewer Initialization in Episode Pages + E2E Tests

Status: DONE

Problem

  1. Inline 3D viewers in episode pages EP01-EP04 never initialized — controls stayed hidden (display:none), no JS errors reported
  2. Zero E2E tests for inline 3D viewer initialization in episode pages

Root Cause

In templates.ts, the __prepareScene function is embedded in a template literal string. The regex /^episode-(\d+)$/ used \d which is not a recognized escape sequence in template literals — JavaScript silently converts \d to d, producing the regex /^episode-(d+)$/ which never matches scene names like "episode-1".

EP05 was unaffected because it has a hardcoded if (sceneName === "episode-5") handler that runs before the general episode-N regex handler.

Solution

  1. Fixed regex: \d\\d in template literal (line 3494 of templates.ts)
  2. Added 6 E2E tests verifying all 5 episodes initialize without JS errors + EP01 scene name check

Files Modified