Polish northern campaign QA rewards
This commit is contained in:
@@ -4504,7 +4504,7 @@ try {
|
||||
}
|
||||
await page.waitForFunction(() => {
|
||||
const state = window.__HEROS_DEBUG__?.battle();
|
||||
return state?.scene === 'BattleScene' && state?.battleId === 'thirty-sixth-battle-dingjun-vanguard' && state?.battleOutcome === null && state?.phase === 'idle';
|
||||
return state?.scene === 'BattleScene' && state?.battleId === 'thirty-sixth-battle-dingjun-vanguard' && state?.battleOutcome === null && state?.phase === 'idle' && state?.mapBackgroundReady === true;
|
||||
});
|
||||
await page.screenshot({ path: 'dist/verification-thirty-sixth-battle.png', fullPage: true });
|
||||
|
||||
@@ -7712,7 +7712,7 @@ try {
|
||||
}
|
||||
await page.waitForFunction(() => {
|
||||
const state = window.__HEROS_DEBUG__?.battle();
|
||||
return state?.scene === 'BattleScene' && state?.battleId === 'fifty-fifth-battle-northern-qishan-road' && state?.battleOutcome === null && state?.phase === 'idle';
|
||||
return state?.scene === 'BattleScene' && state?.battleId === 'fifty-fifth-battle-northern-qishan-road' && state?.battleOutcome === null && state?.phase === 'idle' && state?.mapBackgroundReady === true;
|
||||
});
|
||||
await page.screenshot({ path: 'dist/verification-fifty-fifth-battle.png', fullPage: true });
|
||||
|
||||
@@ -7859,7 +7859,7 @@ try {
|
||||
}
|
||||
await page.waitForFunction(() => {
|
||||
const state = window.__HEROS_DEBUG__?.battle();
|
||||
return state?.scene === 'BattleScene' && state?.battleId === 'fifty-sixth-battle-tianshui-advance' && state?.battleOutcome === null && state?.phase === 'idle';
|
||||
return state?.scene === 'BattleScene' && state?.battleId === 'fifty-sixth-battle-tianshui-advance' && state?.battleOutcome === null && state?.phase === 'idle' && state?.mapBackgroundReady === true;
|
||||
});
|
||||
await page.screenshot({ path: 'dist/verification-fifty-sixth-battle.png', fullPage: true });
|
||||
|
||||
@@ -8008,7 +8008,7 @@ try {
|
||||
}
|
||||
await page.waitForFunction(() => {
|
||||
const state = window.__HEROS_DEBUG__?.battle();
|
||||
return state?.scene === 'BattleScene' && state?.battleId === 'fifty-seventh-battle-jieting-crisis' && state?.battleOutcome === null && state?.phase === 'idle';
|
||||
return state?.scene === 'BattleScene' && state?.battleId === 'fifty-seventh-battle-jieting-crisis' && state?.battleOutcome === null && state?.phase === 'idle' && state?.mapBackgroundReady === true;
|
||||
});
|
||||
await page.screenshot({ path: 'dist/verification-fifty-seventh-battle.png', fullPage: true });
|
||||
|
||||
@@ -8158,7 +8158,7 @@ try {
|
||||
}
|
||||
await page.waitForFunction(() => {
|
||||
const state = window.__HEROS_DEBUG__?.battle();
|
||||
return state?.scene === 'BattleScene' && state?.battleId === 'fifty-eighth-battle-qishan-retreat' && state?.battleOutcome === null && state?.phase === 'idle';
|
||||
return state?.scene === 'BattleScene' && state?.battleId === 'fifty-eighth-battle-qishan-retreat' && state?.battleOutcome === null && state?.phase === 'idle' && state?.mapBackgroundReady === true;
|
||||
});
|
||||
await page.screenshot({ path: 'dist/verification-fifty-eighth-battle.png', fullPage: true });
|
||||
|
||||
@@ -8306,7 +8306,7 @@ try {
|
||||
}
|
||||
await page.waitForFunction(() => {
|
||||
const state = window.__HEROS_DEBUG__?.battle();
|
||||
return state?.scene === 'BattleScene' && state?.battleId === 'fifty-ninth-battle-chencang-siege' && state?.battleOutcome === null && state?.phase === 'idle';
|
||||
return state?.scene === 'BattleScene' && state?.battleId === 'fifty-ninth-battle-chencang-siege' && state?.battleOutcome === null && state?.phase === 'idle' && state?.mapBackgroundReady === true;
|
||||
});
|
||||
await page.screenshot({ path: 'dist/verification-fifty-ninth-battle.png', fullPage: true });
|
||||
|
||||
@@ -8457,7 +8457,7 @@ try {
|
||||
}
|
||||
await page.waitForFunction(() => {
|
||||
const state = window.__HEROS_DEBUG__?.battle();
|
||||
return state?.scene === 'BattleScene' && state?.battleId === 'sixtieth-battle-wudu-yinping' && state?.battleOutcome === null && state?.phase === 'idle';
|
||||
return state?.scene === 'BattleScene' && state?.battleId === 'sixtieth-battle-wudu-yinping' && state?.battleOutcome === null && state?.phase === 'idle' && state?.mapBackgroundReady === true;
|
||||
});
|
||||
await page.screenshot({ path: 'dist/verification-sixtieth-battle.png', fullPage: true });
|
||||
|
||||
@@ -8613,7 +8613,7 @@ try {
|
||||
}
|
||||
await page.waitForFunction(() => {
|
||||
const state = window.__HEROS_DEBUG__?.battle();
|
||||
return state?.scene === 'BattleScene' && state?.battleId === 'sixty-first-battle-hanzhong-rain-defense' && state?.battleOutcome === null && state?.phase === 'idle';
|
||||
return state?.scene === 'BattleScene' && state?.battleId === 'sixty-first-battle-hanzhong-rain-defense' && state?.battleOutcome === null && state?.phase === 'idle' && state?.mapBackgroundReady === true;
|
||||
});
|
||||
await page.screenshot({ path: 'dist/verification-sixty-first-battle.png', fullPage: true });
|
||||
|
||||
@@ -8770,7 +8770,7 @@ try {
|
||||
}
|
||||
await page.waitForFunction(() => {
|
||||
const state = window.__HEROS_DEBUG__?.battle();
|
||||
return state?.scene === 'BattleScene' && state?.battleId === 'sixty-second-battle-qishan-renewed-offensive' && state?.battleOutcome === null && state?.phase === 'idle';
|
||||
return state?.scene === 'BattleScene' && state?.battleId === 'sixty-second-battle-qishan-renewed-offensive' && state?.battleOutcome === null && state?.phase === 'idle' && state?.mapBackgroundReady === true;
|
||||
});
|
||||
await page.screenshot({ path: 'dist/verification-sixty-second-battle.png', fullPage: true });
|
||||
|
||||
@@ -8953,7 +8953,7 @@ try {
|
||||
}
|
||||
await page.waitForFunction(() => {
|
||||
const state = window.__HEROS_DEBUG__?.battle();
|
||||
return state?.scene === 'BattleScene' && state?.battleId === 'sixty-third-battle-lucheng-pursuit' && state?.battleOutcome === null && state?.phase === 'idle';
|
||||
return state?.scene === 'BattleScene' && state?.battleId === 'sixty-third-battle-lucheng-pursuit' && state?.battleOutcome === null && state?.phase === 'idle' && state?.mapBackgroundReady === true;
|
||||
});
|
||||
await page.screenshot({ path: 'dist/verification-sixty-third-battle.png', fullPage: true });
|
||||
|
||||
@@ -9138,7 +9138,7 @@ try {
|
||||
}
|
||||
await page.waitForFunction(() => {
|
||||
const state = window.__HEROS_DEBUG__?.battle();
|
||||
return state?.scene === 'BattleScene' && state?.battleId === 'sixty-fourth-battle-weishui-camps' && state?.battleOutcome === null && state?.phase === 'idle';
|
||||
return state?.scene === 'BattleScene' && state?.battleId === 'sixty-fourth-battle-weishui-camps' && state?.battleOutcome === null && state?.phase === 'idle' && state?.mapBackgroundReady === true;
|
||||
});
|
||||
await page.screenshot({ path: 'dist/verification-sixty-fourth-battle.png', fullPage: true });
|
||||
|
||||
@@ -9330,7 +9330,7 @@ try {
|
||||
}
|
||||
await page.waitForFunction(() => {
|
||||
const state = window.__HEROS_DEBUG__?.battle();
|
||||
return state?.scene === 'BattleScene' && state?.battleId === 'sixty-fifth-battle-weishui-northbank' && state?.battleOutcome === null && state?.phase === 'idle';
|
||||
return state?.scene === 'BattleScene' && state?.battleId === 'sixty-fifth-battle-weishui-northbank' && state?.battleOutcome === null && state?.phase === 'idle' && state?.mapBackgroundReady === true;
|
||||
});
|
||||
await page.screenshot({ path: 'dist/verification-sixty-fifth-battle.png', fullPage: true });
|
||||
|
||||
@@ -9473,7 +9473,7 @@ try {
|
||||
}
|
||||
await page.waitForFunction(() => {
|
||||
const state = window.__HEROS_DEBUG__?.battle();
|
||||
return state?.scene === 'BattleScene' && state?.battleId === 'sixty-sixth-battle-wuzhang-final' && state?.battleOutcome === null && state?.phase === 'idle';
|
||||
return state?.scene === 'BattleScene' && state?.battleId === 'sixty-sixth-battle-wuzhang-final' && state?.battleOutcome === null && state?.phase === 'idle' && state?.mapBackgroundReady === true;
|
||||
});
|
||||
await page.screenshot({ path: 'dist/verification-sixty-sixth-battle.png', fullPage: true });
|
||||
|
||||
@@ -9556,7 +9556,12 @@ try {
|
||||
});
|
||||
await page.waitForFunction(() => {
|
||||
const story = window.__HEROS_DEBUG__?.scene('StoryScene')?.getDebugState?.();
|
||||
return story?.currentPageId === 'sixty-sixth-victory-wuzhang-held' && story?.backgroundReady === true;
|
||||
return (
|
||||
story?.currentPageId === 'sixty-sixth-victory-wuzhang-held' &&
|
||||
story?.ready === true &&
|
||||
story?.backgroundReady === true &&
|
||||
story?.activeTexture === story?.background
|
||||
);
|
||||
});
|
||||
await page.screenshot({ path: 'dist/verification-ending-epilogue-story.png', fullPage: true });
|
||||
await page.evaluate(async () => {
|
||||
@@ -9575,8 +9580,10 @@ try {
|
||||
return (
|
||||
story?.currentPageId === 'ending-wuzhang-council' &&
|
||||
story?.requestedBackground === 'story-wuzhang-jiangwei-inheritance' &&
|
||||
story?.ready === true &&
|
||||
story?.backgroundReady === true &&
|
||||
story?.background?.startsWith('story-wuzhang-jiangwei-inheritance')
|
||||
story?.background?.startsWith('story-wuzhang-jiangwei-inheritance') &&
|
||||
story?.activeTexture === story?.background
|
||||
);
|
||||
});
|
||||
await page.screenshot({ path: 'dist/verification-wuzhang-inheritance-story.png', fullPage: true });
|
||||
|
||||
Reference in New Issue
Block a user