fix: resume campaign progress safely
This commit is contained in:
@@ -206,12 +206,14 @@ function validateCampInteractionUxGuards() {
|
||||
checkedGuardCount += 1;
|
||||
|
||||
expectCampUx(
|
||||
steppedNavigationMethod.includes('const previousStep = getCampaignState().step') &&
|
||||
steppedNavigationMethod.includes('markCampaignStep(step)') &&
|
||||
steppedNavigationMethod.includes('getCampaignState().step === step') &&
|
||||
steppedNavigationMethod.includes('markCampaignStep(previousStep)') &&
|
||||
steppedNavigationMethod.includes('const previousCampaign = getCampaignState()') &&
|
||||
steppedNavigationMethod.includes('beginCampaignStory(') &&
|
||||
steppedNavigationMethod.includes('const startsBattle =') &&
|
||||
steppedNavigationMethod.includes('markCampaignStep(step, {') &&
|
||||
steppedNavigationMethod.includes('startBattle: startsBattle') &&
|
||||
steppedNavigationMethod.includes('saveCampaignState(previousCampaign)') &&
|
||||
navigationMethod.includes('recoverState?.()'),
|
||||
'campaign-step navigation must restore the previous step when lazy scene loading fails'
|
||||
'campaign-step navigation must atomically begin stories and restore the complete previous campaign when lazy scene loading fails'
|
||||
);
|
||||
checkedGuardCount += 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user