feat: rewrite fabricator e2e test with debug bridge for store access
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m22s

- Rewrite e2e/fabricator-happy-path.spec.ts from scratch:
  craft 8 gear pieces (1 per slot) via Fabricator UI,
  equip all via store bridge, verify equipment effects
- Add debugBridge.ts: exposes Zustand stores on window.__TEST__
  so Playwright can call store actions via page.evaluate()
- Import debugBridge in page.tsx as side-effect
- Uses Debug tab UI for attunement/element unlocking
- Uses store bridge for discipline XP, mana capacity, materials,
  recipe unlocking, and equipment slot assignment
- Test passes in ~3.5 minutes (155s craft time + setup)
This commit is contained in:
2026-06-02 10:49:38 +02:00
parent fa78c7a93a
commit fe78ae047f
4 changed files with 284 additions and 192 deletions
+2
View File
@@ -21,6 +21,7 @@ Mana-Loop/
│ └── playtest.spec.ts
├── playwright-report/
│ ├── data/
│ │ └── 199a0ed84e7318aab410b0ec2f96ea8f6478a4da.png
│ └── index.html
├── public/
│ ├── fonts/
@@ -341,6 +342,7 @@ Mana-Loop/
│ │ │ │ ├── crafting-initial-state.ts
│ │ │ │ ├── craftingStore.ts
│ │ │ │ ├── craftingStore.types.ts
│ │ │ │ ├── debugBridge.ts
│ │ │ │ ├── discipline-slice.ts
│ │ │ │ ├── gameActions.ts
│ │ │ │ ├── gameHooks.ts