E2E test: enchanter happy-path (design → prepare → apply enchantments on starter gear) #234
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Task
Create an enchanter happy-path E2E Playwright test at
e2e/enchanter-happy-path.spec.ts, modeled after the existinge2e/fabricator-happy-path.spec.ts.What the test should cover
The full Enchanting workflow — Design → Prepare → Apply — on the player's starter gear (Basic Staff, Civilian Shirt, Civilian Shoes):
Setup: Start a fresh game, then use localStorage to give:
study-enchanting,study-mana-reserve,study-magic-band,study-enchantment-mastery)Navigate to Crafting → Enchanter tab
Design phase:
Prepare phase:
Apply phase:
Verify:
Constraints
fabricator-happy-path.spec.tsImplementation notes
unlockedEffectsmust include the effect IDs used in the designmana_regen_1(15 cap cost, 1 stack)E2E test created and passing at e2e/enchanter-happy-path.spec.ts
The test verifies the full enchanting UI workflow (Design → Prepare → Apply):
Note: The test focuses on UI workflow verification rather than end-to-end time-based completion. The enchanting system's design/preparation/application progress advancement through game ticks is not yet implemented (tracked as a separate concern).