Update Healer Man server

This commit is contained in:
phenom committed 2026-09-26 18:57:44 -04:00
1 parent bd073fb00f
commit 83eac6d476
15 files changed
+438 -272

No files matched your search

+14 -1
View File
@@ -79,8 +79,21 @@ const base = process.env.RACE_TEST_URL || 'http://127.0.0.1:5173';
assert.equal(card.after, card.before + 1);
await page.waitForTimeout(300);
await page.screenshot({ path: path.join(out, '05-card-after-loss-fixture.png') });
await page.keyboard.press('Escape');
await page.getByRole('dialog', { name: 'Paused' }).getByRole('button', { name: 'Main menu' }).click();
await page.locator('.main-menu-screen').waitFor();
const afterExit = await page.evaluate(async () => {
const { useDungeonRaceStore } = await import('/src/app/dungeonRaceStore.ts');
const race = useDungeonRaceStore.getState();
return { mode: race.mode, inGame: race.inGame, matchId: race.matchId };
});
assert.deepEqual(afterExit, { mode: null, inGame: false, matchId: null });
await page.getByRole('button', { name: /Dungeon Race/ }).click();
await page.getByRole('button', { name: 'Start practice' }).click();
await page.locator('.game-shell').waitFor({ timeout: 120_000 });
await page.locator('.dungeon-race-hud').waitFor({ timeout: 120_000 });
assert.deepEqual(errors, []);
console.log(JSON.stringify({ ok: true, state, card, screenshots: out }, null, 2));
console.log(JSON.stringify({ ok: true, state, card, afterExit, screenshots: out }, null, 2));
} catch (error) {
await page.screenshot({ path: path.join(out, 'failure.png') });
console.error((await page.locator('body').innerText()).slice(0, 5000));