Add fourth sequential asset expansion batch
This commit is contained in:
@@ -9147,7 +9147,7 @@ try {
|
||||
weishuiCampsStoryState?.background !== 'story-weishui-camps' ||
|
||||
weishuiCampsStoryState?.backgroundReady !== true ||
|
||||
weishuiCampsStoryState?.portraitKey !== 'zhugeLiang' ||
|
||||
weishuiCampsStoryState?.portraitTextureKey !== 'portrait-zhuge-liang'
|
||||
!weishuiCampsStoryState?.portraitTextureKey?.startsWith('portrait-zhuge-liang')
|
||||
) {
|
||||
throw new Error(`Expected Weishui camps story to lazy-load its new generated background and show Zhuge Liang portrait by speaker fallback: ${JSON.stringify(weishuiCampsStoryState)}`);
|
||||
}
|
||||
@@ -9324,13 +9324,20 @@ try {
|
||||
const northbankStoryState = await page.evaluate(() =>
|
||||
window.__HEROS_GAME__?.scene.getScene('StoryScene')?.getDebugState?.()
|
||||
);
|
||||
const northbankExpectedPortraits = {
|
||||
'sixty-fifth-northbank-council': ['zhugeLiang', 'portrait-zhuge-liang'],
|
||||
'sixty-fifth-forward-ledger': ['huangQuan', 'portrait-huang-quan'],
|
||||
'sixty-fifth-rearguard-threat': ['jiangWei', 'portrait-jiang-wei']
|
||||
};
|
||||
const northbankExpectedPortrait = northbankExpectedPortraits[northbankStoryState?.currentPageId];
|
||||
if (
|
||||
northbankStoryState?.background !== 'story-weishui-northbank' ||
|
||||
northbankStoryState?.backgroundReady !== true ||
|
||||
northbankStoryState?.portraitKey !== 'zhugeLiang' ||
|
||||
northbankStoryState?.portraitTextureKey !== 'portrait-zhuge-liang'
|
||||
!northbankExpectedPortrait ||
|
||||
northbankStoryState?.portraitKey !== northbankExpectedPortrait[0] ||
|
||||
!northbankStoryState?.portraitTextureKey?.startsWith(northbankExpectedPortrait[1])
|
||||
) {
|
||||
throw new Error(`Expected Weishui north bank story to lazy-load its new generated background and show Zhuge Liang portrait by speaker fallback: ${JSON.stringify(northbankStoryState)}`);
|
||||
throw new Error(`Expected Weishui north bank story to lazy-load its new generated background and show the current speaker portrait by fallback: ${JSON.stringify(northbankStoryState)}`);
|
||||
}
|
||||
await page.screenshot({ path: 'dist/verification-sixty-fifth-story.png', fullPage: true });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user