feat: add happy-path Playwright test for earth-gear crafting workflow #232
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?
Goal
Create a Playwright "happy path" E2E test that exercises the full Fabricator earth-gear crafting workflow from a fresh game:
study-fabricator-recipesdiscipline to unlock earth recipes (needs 50 XP)Materials needed per recipe
Discipline unlock requirements
study-fabricator-recipesat 50 XP → unlocks earth recipes (earthHelm, earthBoots)study-wizard-branchat 50 XP → unlocks oakStaffTechnical Notes
page.evaluate()to directly set store state (materials, mana, discipline XP) since there is no debug UI for adding materials.page.evaluate(), the test clicks the "Craft" button and waits for the crafting progress to complete by pollingequipmentCraftingProgressgoing null.Acceptance Criteria
e2e/fabricator-happy-path.spec.tse2e/playtest.spec.ts(baseURL, helpers, describe blocks)Affected Files
e2e/fabricator-happy-path.spec.ts— NEWPriority
Medium — this is a test-only change that establishes a regression-testing foundation for the Fabricator crafting system.
Closing — this issue incorrectly assumed materials would be injected via debug store manipulation. Correct approach: the test should actually craft the required materials through the Fabricator (mana crystal → earth crystal → earth shard). See replacement issue #233.
Closing — incorrect approach. Materials should be crafted through the Fabricator, not injected via debug. See replacement issue.