fix: activate discipline before adding XP in e2e test
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
- Disciplines section starts collapsed: click header to expand - Raw Mana Mastery must be activated before XP can be added (handleAddXP bails if discipline not in store) - Also needed because debugBridge changes require a fresh build (dev server was stale)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Circular Dependencies
|
||||
Generated: 2026-06-02T11:55:05.709Z
|
||||
Generated: 2026-06-02T13:46:41.866Z
|
||||
|
||||
No circular dependencies found. ✅
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"_meta": {
|
||||
"generated": "2026-06-02T11:55:03.952Z",
|
||||
"generated": "2026-06-02T13:46:40.091Z",
|
||||
"description": "Import dependency graph for src/lib/game. Keys are files, values are arrays of files they import.",
|
||||
"usage": "To find what a file affects, search for its path in the VALUES. To find what a file depends on, look at its KEY entry."
|
||||
},
|
||||
|
||||
@@ -97,10 +97,21 @@ test.describe('Combat Happy-Path: Spire Climb → Combat → Mana Recovery → E
|
||||
// ── 2b. Boost max mana via Raw Mana Mastery discipline XP ────────────────
|
||||
console.log('[TEST] 2b. Boosting max mana via Raw Mana Mastery XP...');
|
||||
|
||||
// The Disciplines section is collapsed by default — expand it
|
||||
const disciplinesHeader = page.locator('button', { hasText: /^Disciplines$/ }).first();
|
||||
await disciplinesHeader.click();
|
||||
await waitForMs(page, 300);
|
||||
|
||||
// Find the Raw Mana Mastery discipline row via data-testid
|
||||
const rawManaRow = page.getByTestId('debug-discipline-row-raw-mastery');
|
||||
await expect(rawManaRow).toBeVisible({ timeout: 5000 });
|
||||
|
||||
// Activate Raw Mana Mastery first (discipline must exist in store before XP can be added)
|
||||
const toggleBtn = page.getByTestId('debug-discipline-toggle-raw-mastery');
|
||||
await expect(toggleBtn).toBeVisible({ timeout: 5000 });
|
||||
await toggleBtn.click();
|
||||
await waitForMs(page, 200);
|
||||
|
||||
// The +1K button within that row
|
||||
const plus1KBtn = page.getByTestId('debug-discipline-add1k-raw-mastery');
|
||||
await expect(plus1KBtn).toBeVisible({ timeout: 5000 });
|
||||
|
||||
Reference in New Issue
Block a user