Add camp sortie preparation overlay

This commit is contained in:
2026-06-22 20:24:43 +09:00
parent d36b5adeb6
commit ab5870eaa8
2 changed files with 218 additions and 2 deletions

View File

@@ -265,6 +265,21 @@ try {
throw new Error(`Expected campaign slot 1 to persist progress: ${JSON.stringify(campaignSlotAfterDialogue)}`);
}
await page.mouse.click(1120, 38);
await page.waitForTimeout(180);
const campStateWithSortiePrep = await page.evaluate(() => window.__HEROS_DEBUG__?.camp());
if (!campStateWithSortiePrep?.sortieVisible) {
throw new Error(`Expected sortie preparation overlay from next story button: ${JSON.stringify(campStateWithSortiePrep)}`);
}
await page.screenshot({ path: 'dist/verification-camp-sortie.png', fullPage: true });
await page.mouse.click(792, 596);
await page.waitForTimeout(140);
const campStateAfterSortieClose = await page.evaluate(() => window.__HEROS_DEBUG__?.camp());
if (campStateAfterSortieClose?.sortieVisible) {
throw new Error(`Expected sortie preparation overlay to close: ${JSON.stringify(campStateAfterSortieClose)}`);
}
await page.evaluate(() => window.__HEROS_GAME__?.scene.start('TitleScene'));
await page.waitForFunction(() => {
const activeScenes = window.__HEROS_DEBUG__?.activeScenes() ?? [];