Task 623: Calculator Numeric Verification E2E Tests
完了 ← タスク一覧
Task 623: Calculator Numeric Verification E2E Tests
Status: DONE
Problem
The calculator E2E tests only verify that results are "not empty" (not "—"). No test checks that the actual numeric values are correct. A bug in the calculation logic (e.g., wrong formula, unit conversion error) would go undetected.
Solution
Add E2E tests that:
- Load the calculator with known EP01 default values (3.68 AU, 48000 t, 72 h, 9.8 MN)
- Verify the required acceleration, ΔV, and verdict match expected values
- Change inputs to a custom value and verify recalculation
- Test preset button functionality produces expected numeric results
Files to Modify
ts/e2e/reports.spec.ts— Add numeric verification tests to the calculator describe block