Add camp sortie preparation overlay
This commit is contained in:
@@ -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() ?? [];
|
||||
|
||||
Reference in New Issue
Block a user