fix: activate discipline before adding XP in e2e test
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:
2026-06-02 16:00:28 +02:00
parent 0e7ff203b6
commit e95a378731
3 changed files with 13 additions and 2 deletions
+11
View File
@@ -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 });