Update Healer Man server

This commit is contained in:
phenom committed 2026-10-04 22:51:21 -04:00
1 parent 6cc1b9217f
commit 6114a2295f
67 files changed
+6241 -347

No files matched your search

+5 -4
View File
@@ -1,3 +1,4 @@
const { DEFAULT_TEST_DUNGEON_TITLE, DEFAULT_TEST_DUNGEON_BOSS } = require('./playtest-defaults.cjs');
const { chromium } = require('C:/Users/phenom/.cache/codex-runtimes/codex-primary-runtime/dependencies/node/node_modules/playwright');
const assert = require('node:assert/strict');
const fs = require('node:fs');
@@ -8,7 +9,7 @@ const directory = path.resolve('playtest-artifacts', 'rotation-overhaul');
fs.mkdirSync(directory, { recursive: true });
const databaseDirectory = fs.mkdtempSync(path.join(os.tmpdir(), 'healer-man-rotation-playtest-'));
const partySeed = 'rotation-boss-test-0';
const bossName = 'Lady Anacondra';
const bossName = DEFAULT_TEST_DUNGEON_BOSS;
const sleep = (milliseconds) => new Promise((resolve) => setTimeout(resolve, milliseconds));
@@ -183,7 +184,7 @@ const sleep = (milliseconds) => new Promise((resolve) => setTimeout(resolve, mil
}
await sleep(50);
}
assert(engaged, 'the companion party engages Lady Anacondra');
assert(engaged, `the companion party engages ${bossName}`);
await page.screenshot({ path: path.join(directory, 'boss-engaged.png'), fullPage: true });
const canvasImage = await page.locator('canvas').screenshot({ path: path.join(directory, 'boss-engaged-canvas.png') });
assert(canvasImage.length > 10_000, 'boss screenshot contains a rendered WebGL scene');
@@ -199,7 +200,7 @@ const sleep = (milliseconds) => new Promise((resolve) => setTimeout(resolve, mil
}
await sleep(50);
}
assert(completed, 'the companion party defeats Lady Anacondra');
assert(completed, `the companion party defeats ${bossName}`);
await page.waitForTimeout(250);
await page.screenshot({ path: path.join(directory, 'boss-defeated.png'), fullPage: true });
@@ -216,7 +217,7 @@ const sleep = (milliseconds) => new Promise((resolve) => setTimeout(resolve, mil
assert.deepEqual(errors, [], `No browser page errors: ${errors.join('; ')}`);
const results = {
dungeon: 'Wailing Caverns — Boss Testing',
dungeon: `${DEFAULT_TEST_DUNGEON_TITLE} — Boss Testing`,
boss: bossName,
partySeed,
engagedBoss: engaged.boss,