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
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user