Repository navigation
Description
Machine-Readable Contract
contract_schema_version: v1
issue_kind: implementation
parent_issue: none
goal_ref: "cleanup: Remove stale visual baseline PNG that is not referenced by current tests"
change_kind: codeParent Issue
なし(単独改善)
Parent Goal Ref
- Goal: Remove stale baseline PNG (
m2-defeat-overlay-baseline.png) that is not referenced by any current test contract - Desired Destination: N/A(単独改善)
Current Validated Scope
- Delete stale PNG:
tests/e2e/__screenshots__/m2-combat-mvp.spec.ts/m2-defeat-overlay-baseline.png - Verify e2e tests remain green after deletion
Remaining Parent Gaps
なし
Outcome
Stale m2-defeat-overlay-baseline.png is deleted, and e2e tests (pnpm test:e2e:ci) continue to pass without this file.
In Scope
- Delete the stale PNG file
tests/e2e/__screenshots__/m2-combat-mvp.spec.ts/m2-defeat-overlay-baseline.png - Confirm via test execution that e2e visual tests remain green
Out of Scope
- Modifying any test files or test logic
- Baseline PNG generation or auto-update pipeline (addressed in 実装: E2E visual regression に Playwright toHaveScreenshot baseline を追加し M2 ビジュアル証跡を強化する #681)
- Any visual rendering changes
Acceptance Criteria
- File
tests/e2e/__screenshots__/m2-combat-mvp.spec.ts/m2-defeat-overlay-baseline.pngis deleted -
tests/e2e/m2-combat-mvp.spec.tscontains no reference to the deleted PNG (already the case at baseline) - e2e test suite passes (
pnpm test:e2e:cigreen)
Verification Commands
test ! -f tests/e2e/__screenshots__/m2-combat-mvp.spec.ts/m2-defeat-overlay-baseline.pngrg "m2-defeat-overlay-baseline" tests/e2e/pnpm test:e2e:ciAllowed Paths
- tests/e2e/screenshots/m2-combat-mvp.spec.ts/m2-defeat-overlay-baseline.png
Stop Conditions
- Allowed Paths 外の変更が必要と判明した場合
- In Scope の固定契約(キー集合・スキーマ・型定義)の変更が必要になった場合
- 新規 Issue の起票が必要と判断した場合(スコープ分割が発生する場合)
- 後続 Phase / 別スコープへの波及が判明した場合
- nested SubAgent delegation が必要になった場合
- 外部サービス利用・権限昇格・既存テスト大規模改変が必要になった場合
Required Skills
なし
Scope Delta
N/A
Background
In PR #760 (addressing #749), a visual baseline contract registry was established (docs/dev/visual-baseline-registry.md). During registry creation, tests/e2e/__screenshots__/m2-combat-mvp.spec.ts/m2-defeat-overlay-baseline.png was identified as a stale file not referenced by the current test suite.
The defeat-overlay uses pixel-contract verification (red pixel dominance check via getImageData()), not exact screenshot baseline matching. Therefore, this PNG does not correspond to any registered visual contract in the baseline registry.
#749 was scoped to visual baseline registry definition and did not include tests/e2e/__screenshots__/** in Allowed Paths, so deletion was deferred to a follow-up Issue (registry §3 documents this decision). This Issue materializes that follow-up.
Related Issues
- 設計: E2E visual regression baseline の契約台帳と更新ポリシーを定義する(visual regression evidence pipeline) #749 (Visual baseline registry established)
- PR 設計: visual baseline 契約台帳と CI 証跡パイプラインを整備する (#749) #760 (Registry implementation)
- 実装: E2E visual regression に Playwright toHaveScreenshot baseline を追加し M2 ビジュアル証跡を強化する #681 (Visual regression testing framework)
- [Deferred] 実装: 戦闘中ステータス(HULL/HP)を戦闘描画画面(Canvas)に集約表示する #727 (HUD/layout re-design that may invalidate current contracts)
- fix(systems): sortie timeout as neutral terminal #732 (Timeout overlay as neutral terminal state)
Notes for Reviewer
None.
Activity
fix(#749): 検証スクリプトを CI 常設・厳格化し registry に supersession/版方針を明記する
設計: visual baseline 契約台帳と CI 証跡パイプラインを整備する (#749) (#760)