Add Qishan renewed offensive chapter
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { spawn } from 'node:child_process';
|
||||
import { spawn } from 'node:child_process';
|
||||
import { chromium } from 'playwright';
|
||||
|
||||
const targetUrl = process.env.VERIFY_URL ?? 'http://localhost:5173/';
|
||||
@@ -1829,7 +1829,7 @@ try {
|
||||
if (
|
||||
progressTabState?.activeTab !== 'progress' ||
|
||||
progressTabState.campaignProgress?.completedKnown !== 17 ||
|
||||
progressTabState.campaignProgress?.totalKnown !== 61 ||
|
||||
progressTabState.campaignProgress?.totalKnown !== 62 ||
|
||||
progressTabState.campaignProgress?.activeChapter?.title !== '적벽대전' ||
|
||||
progressTabState.campaignProgress?.latestBattleTitle !== '융중 방문로' ||
|
||||
progressTabState.campaignProgress?.nextBattleTitle !== '박망파 매복전'
|
||||
@@ -1980,7 +1980,7 @@ try {
|
||||
if (
|
||||
postBowangProgressState?.activeTab !== 'progress' ||
|
||||
postBowangProgressState.campaignProgress?.completedKnown !== 18 ||
|
||||
postBowangProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postBowangProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postBowangProgressState.campaignProgress?.activeChapter?.title !== '적벽대전' ||
|
||||
postBowangProgressState.campaignProgress?.latestBattleTitle !== '박망파 매복전' ||
|
||||
postBowangProgressState.campaignProgress?.nextBattleTitle !== '장판파 피난로'
|
||||
@@ -2118,7 +2118,7 @@ try {
|
||||
if (
|
||||
postChangbanProgressState?.activeTab !== 'progress' ||
|
||||
postChangbanProgressState.campaignProgress?.completedKnown !== 19 ||
|
||||
postChangbanProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postChangbanProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postChangbanProgressState.campaignProgress?.activeChapter?.title !== '적벽대전' ||
|
||||
postChangbanProgressState.campaignProgress?.latestBattleTitle !== '장판파 피난로' ||
|
||||
postChangbanProgressState.campaignProgress?.nextBattleTitle !== '강동 사절로'
|
||||
@@ -2256,7 +2256,7 @@ try {
|
||||
if (
|
||||
postJiangdongProgressState?.activeTab !== 'progress' ||
|
||||
postJiangdongProgressState.campaignProgress?.completedKnown !== 20 ||
|
||||
postJiangdongProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postJiangdongProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postJiangdongProgressState.campaignProgress?.activeChapter?.title !== '적벽대전' ||
|
||||
postJiangdongProgressState.campaignProgress?.latestBattleTitle !== '강동 사절로' ||
|
||||
postJiangdongProgressState.campaignProgress?.nextBattleTitle !== '적벽 전초전'
|
||||
@@ -2396,7 +2396,7 @@ try {
|
||||
if (
|
||||
postRedCliffsProgressState?.activeTab !== 'progress' ||
|
||||
postRedCliffsProgressState.campaignProgress?.completedKnown !== 21 ||
|
||||
postRedCliffsProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postRedCliffsProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postRedCliffsProgressState.campaignProgress?.activeChapter?.title !== '적벽대전' ||
|
||||
postRedCliffsProgressState.campaignProgress?.latestBattleTitle !== '적벽 전초전' ||
|
||||
postRedCliffsProgressState.campaignProgress?.nextBattleTitle !== '적벽 화공전'
|
||||
@@ -2536,7 +2536,7 @@ try {
|
||||
if (
|
||||
postFireAttackProgressState?.activeTab !== 'progress' ||
|
||||
postFireAttackProgressState.campaignProgress?.completedKnown !== 22 ||
|
||||
postFireAttackProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postFireAttackProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postFireAttackProgressState.campaignProgress?.activeChapter?.title !== '형주·익주 확보' ||
|
||||
postFireAttackProgressState.campaignProgress?.latestBattleTitle !== '적벽 화공전' ||
|
||||
postFireAttackProgressState.campaignProgress?.nextBattleTitle !== '형주 남부 진입전'
|
||||
@@ -2679,7 +2679,7 @@ try {
|
||||
if (
|
||||
postJingzhouProgressState?.activeTab !== 'progress' ||
|
||||
postJingzhouProgressState.campaignProgress?.completedKnown !== 23 ||
|
||||
postJingzhouProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postJingzhouProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postJingzhouProgressState.campaignProgress?.activeChapter?.title !== '형주·익주 확보' ||
|
||||
postJingzhouProgressState.campaignProgress?.latestBattleTitle !== '형주 남부 진입전' ||
|
||||
postJingzhouProgressState.campaignProgress?.nextBattleTitle !== '계양 설득전'
|
||||
@@ -2821,7 +2821,7 @@ try {
|
||||
if (
|
||||
postGuiyangProgressState?.activeTab !== 'progress' ||
|
||||
postGuiyangProgressState.campaignProgress?.completedKnown !== 24 ||
|
||||
postGuiyangProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postGuiyangProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postGuiyangProgressState.campaignProgress?.activeChapter?.title !== '형주·익주 확보' ||
|
||||
postGuiyangProgressState.campaignProgress?.latestBattleTitle !== '계양 설득전' ||
|
||||
postGuiyangProgressState.campaignProgress?.nextBattleTitle !== '무릉 산길 확보전'
|
||||
@@ -2964,7 +2964,7 @@ try {
|
||||
if (
|
||||
postWulingProgressState?.activeTab !== 'progress' ||
|
||||
postWulingProgressState.campaignProgress?.completedKnown !== 25 ||
|
||||
postWulingProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postWulingProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postWulingProgressState.campaignProgress?.activeChapter?.title !== '형주·익주 확보' ||
|
||||
postWulingProgressState.campaignProgress?.latestBattleTitle !== '무릉 산길 확보전' ||
|
||||
postWulingProgressState.campaignProgress?.nextBattleTitle !== '장사 노장 대면전'
|
||||
@@ -3113,7 +3113,7 @@ try {
|
||||
if (
|
||||
postChangshaProgressState?.activeTab !== 'progress' ||
|
||||
postChangshaProgressState.campaignProgress?.completedKnown !== 26 ||
|
||||
postChangshaProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postChangshaProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postChangshaProgressState.campaignProgress?.activeChapter?.title !== '형주·익주 확보' ||
|
||||
postChangshaProgressState.campaignProgress?.latestBattleTitle !== '장사 노장 대면전' ||
|
||||
postChangshaProgressState.campaignProgress?.nextBattleTitle !== '익주 원군로'
|
||||
@@ -3258,7 +3258,7 @@ try {
|
||||
if (
|
||||
postYizhouProgressState?.activeTab !== 'progress' ||
|
||||
postYizhouProgressState.campaignProgress?.completedKnown !== 27 ||
|
||||
postYizhouProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postYizhouProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postYizhouProgressState.campaignProgress?.activeChapter?.title !== '형주·익주 확보' ||
|
||||
postYizhouProgressState.campaignProgress?.latestBattleTitle !== '익주 원군로' ||
|
||||
postYizhouProgressState.campaignProgress?.nextBattleTitle !== '부수관 진입전'
|
||||
@@ -3405,7 +3405,7 @@ try {
|
||||
if (
|
||||
postFuPassProgressState?.activeTab !== 'progress' ||
|
||||
postFuPassProgressState.campaignProgress?.completedKnown !== 28 ||
|
||||
postFuPassProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postFuPassProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postFuPassProgressState.campaignProgress?.activeChapter?.title !== '형주·익주 확보' ||
|
||||
postFuPassProgressState.campaignProgress?.latestBattleTitle !== '부수관 진입전' ||
|
||||
postFuPassProgressState.campaignProgress?.nextBattleTitle !== '낙성 외곽전'
|
||||
@@ -3554,7 +3554,7 @@ try {
|
||||
if (
|
||||
postLuoProgressState?.activeTab !== 'progress' ||
|
||||
postLuoProgressState.campaignProgress?.completedKnown !== 29 ||
|
||||
postLuoProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postLuoProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postLuoProgressState.campaignProgress?.activeChapter?.title !== '형주·익주 확보' ||
|
||||
postLuoProgressState.campaignProgress?.latestBattleTitle !== '낙성 외곽전' ||
|
||||
postLuoProgressState.campaignProgress?.nextBattleTitle !== '낙봉파 매복전'
|
||||
@@ -3700,7 +3700,7 @@ try {
|
||||
if (
|
||||
postLuofengProgressState?.activeTab !== 'progress' ||
|
||||
postLuofengProgressState.campaignProgress?.completedKnown !== 30 ||
|
||||
postLuofengProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postLuofengProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postLuofengProgressState.campaignProgress?.activeChapter?.title !== '형주·익주 확보' ||
|
||||
postLuofengProgressState.campaignProgress?.latestBattleTitle !== '낙봉파 매복전' ||
|
||||
postLuofengProgressState.campaignProgress?.nextBattleTitle !== '낙성 본성 공략'
|
||||
@@ -3852,7 +3852,7 @@ try {
|
||||
if (
|
||||
postLuoMainProgressState?.activeTab !== 'progress' ||
|
||||
postLuoMainProgressState.campaignProgress?.completedKnown !== 31 ||
|
||||
postLuoMainProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postLuoMainProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postLuoMainProgressState.campaignProgress?.activeChapter?.title !== '형주·익주 확보' ||
|
||||
postLuoMainProgressState.campaignProgress?.latestBattleTitle !== '낙성 본성 공략' ||
|
||||
postLuoMainProgressState.campaignProgress?.nextBattleTitle !== '면죽관 압박전'
|
||||
@@ -4005,7 +4005,7 @@ try {
|
||||
if (
|
||||
postMianzhuProgressState?.activeTab !== 'progress' ||
|
||||
postMianzhuProgressState.campaignProgress?.completedKnown !== 32 ||
|
||||
postMianzhuProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postMianzhuProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postMianzhuProgressState.campaignProgress?.activeChapter?.title !== '형주·익주 확보' ||
|
||||
postMianzhuProgressState.campaignProgress?.latestBattleTitle !== '면죽관 압박전' ||
|
||||
postMianzhuProgressState.campaignProgress?.nextBattleTitle !== '성도 항복 권고전'
|
||||
@@ -4159,7 +4159,7 @@ try {
|
||||
if (
|
||||
postChengduProgressState?.activeTab !== 'progress' ||
|
||||
postChengduProgressState.campaignProgress?.completedKnown !== 33 ||
|
||||
postChengduProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postChengduProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postChengduProgressState.campaignProgress?.activeChapter?.title !== '촉한 건국' ||
|
||||
postChengduProgressState.campaignProgress?.latestBattleTitle !== '성도 항복 권고전' ||
|
||||
postChengduProgressState.campaignProgress?.nextBattleTitle !== '가맹관 마초 대면전'
|
||||
@@ -4314,7 +4314,7 @@ try {
|
||||
if (
|
||||
postJiamengProgressState?.activeTab !== 'progress' ||
|
||||
postJiamengProgressState.campaignProgress?.completedKnown !== 34 ||
|
||||
postJiamengProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postJiamengProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postJiamengProgressState.campaignProgress?.activeChapter?.title !== '촉한 건국' ||
|
||||
postJiamengProgressState.campaignProgress?.latestBattleTitle !== '가맹관 마초 대면전' ||
|
||||
postJiamengProgressState.campaignProgress?.nextBattleTitle !== '양평관 정찰전'
|
||||
@@ -4470,7 +4470,7 @@ try {
|
||||
if (
|
||||
postYangpingProgressState?.activeTab !== 'progress' ||
|
||||
postYangpingProgressState.campaignProgress?.completedKnown !== 35 ||
|
||||
postYangpingProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postYangpingProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postYangpingProgressState.campaignProgress?.activeChapter?.title !== '촉한 건국' ||
|
||||
postYangpingProgressState.campaignProgress?.latestBattleTitle !== '양평관 정찰전' ||
|
||||
postYangpingProgressState.campaignProgress?.nextBattleTitle !== '정군산 전초전'
|
||||
@@ -4627,7 +4627,7 @@ try {
|
||||
if (
|
||||
postDingjunProgressState?.activeTab !== 'progress' ||
|
||||
postDingjunProgressState.campaignProgress?.completedKnown !== 36 ||
|
||||
postDingjunProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postDingjunProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postDingjunProgressState.campaignProgress?.activeChapter?.title !== '촉한 건국' ||
|
||||
postDingjunProgressState.campaignProgress?.latestBattleTitle !== '정군산 전초전' ||
|
||||
postDingjunProgressState.campaignProgress?.nextBattleTitle !== '한중 결전'
|
||||
@@ -4780,7 +4780,7 @@ try {
|
||||
if (
|
||||
postHanzhongProgressState?.activeTab !== 'progress' ||
|
||||
postHanzhongProgressState.campaignProgress?.completedKnown !== 37 ||
|
||||
postHanzhongProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postHanzhongProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postHanzhongProgressState.campaignProgress?.activeChapter?.title !== '촉한 건국' ||
|
||||
postHanzhongProgressState.campaignProgress?.latestBattleTitle !== '한중 결전' ||
|
||||
postHanzhongProgressState.campaignProgress?.nextBattleTitle !== '한중왕 즉위 준비'
|
||||
@@ -4841,7 +4841,7 @@ try {
|
||||
if (
|
||||
postKingCouncilProgressState?.activeTab !== 'progress' ||
|
||||
postKingCouncilProgressState.campaignProgress?.completedKnown !== 37 ||
|
||||
postKingCouncilProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postKingCouncilProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postKingCouncilProgressState.campaignProgress?.latestBattleTitle !== '한중 결전' ||
|
||||
postKingCouncilProgressState.campaignProgress?.nextBattleTitle !== '촉한 건국 선포'
|
||||
) {
|
||||
@@ -4901,7 +4901,7 @@ try {
|
||||
if (
|
||||
postFoundationProgressState?.activeTab !== 'progress' ||
|
||||
postFoundationProgressState.campaignProgress?.completedKnown !== 37 ||
|
||||
postFoundationProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postFoundationProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postFoundationProgressState.campaignProgress?.latestBattleTitle !== '한중 결전' ||
|
||||
postFoundationProgressState.campaignProgress?.nextBattleTitle !== '형주 방위 전초전'
|
||||
) {
|
||||
@@ -5052,7 +5052,7 @@ try {
|
||||
if (
|
||||
postJingDefenseProgressState?.activeTab !== 'progress' ||
|
||||
postJingDefenseProgressState.campaignProgress?.completedKnown !== 38 ||
|
||||
postJingDefenseProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postJingDefenseProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postJingDefenseProgressState.campaignProgress?.latestBattleTitle !== '형주 방위 전초전' ||
|
||||
postJingDefenseProgressState.campaignProgress?.nextBattleTitle !== '번성 외곽 압박전'
|
||||
) {
|
||||
@@ -5205,7 +5205,7 @@ try {
|
||||
if (
|
||||
postFanCastleProgressState?.activeTab !== 'progress' ||
|
||||
postFanCastleProgressState.campaignProgress?.completedKnown !== 39 ||
|
||||
postFanCastleProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postFanCastleProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postFanCastleProgressState.campaignProgress?.latestBattleTitle !== '번성 외곽 압박전' ||
|
||||
postFanCastleProgressState.campaignProgress?.nextBattleTitle !== '한수 수공'
|
||||
) {
|
||||
@@ -5359,7 +5359,7 @@ try {
|
||||
if (
|
||||
postHanRiverProgressState?.activeTab !== 'progress' ||
|
||||
postHanRiverProgressState.campaignProgress?.completedKnown !== 40 ||
|
||||
postHanRiverProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postHanRiverProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postHanRiverProgressState.campaignProgress?.latestBattleTitle !== '한수 수공' ||
|
||||
postHanRiverProgressState.campaignProgress?.nextBattleTitle !== '번성 공성전'
|
||||
) {
|
||||
@@ -5513,7 +5513,7 @@ try {
|
||||
if (
|
||||
postFanSiegeProgressState?.activeTab !== 'progress' ||
|
||||
postFanSiegeProgressState.campaignProgress?.completedKnown !== 41 ||
|
||||
postFanSiegeProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postFanSiegeProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postFanSiegeProgressState.campaignProgress?.latestBattleTitle !== '번성 공성전' ||
|
||||
postFanSiegeProgressState.campaignProgress?.nextBattleTitle !== '강릉 나루 경계전'
|
||||
) {
|
||||
@@ -5675,7 +5675,7 @@ try {
|
||||
if (
|
||||
postJingRearProgressState?.activeTab !== 'progress' ||
|
||||
postJingRearProgressState.campaignProgress?.completedKnown !== 42 ||
|
||||
postJingRearProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postJingRearProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postJingRearProgressState.campaignProgress?.latestBattleTitle !== '강릉 나루 경계전' ||
|
||||
postJingRearProgressState.campaignProgress?.nextBattleTitle !== '공안 성문 변고'
|
||||
) {
|
||||
@@ -5830,7 +5830,7 @@ try {
|
||||
if (
|
||||
postGonganProgressState?.activeTab !== 'progress' ||
|
||||
postGonganProgressState.campaignProgress?.completedKnown !== 43 ||
|
||||
postGonganProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postGonganProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postGonganProgressState.campaignProgress?.latestBattleTitle !== '공안 성문 변고' ||
|
||||
postGonganProgressState.campaignProgress?.nextBattleTitle !== '맥성 고립전'
|
||||
) {
|
||||
@@ -5988,7 +5988,7 @@ try {
|
||||
if (
|
||||
postMaichengProgressState?.activeTab !== 'progress' ||
|
||||
postMaichengProgressState.campaignProgress?.completedKnown !== 44 ||
|
||||
postMaichengProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postMaichengProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postMaichengProgressState.campaignProgress?.latestBattleTitle !== '맥성 고립전' ||
|
||||
postMaichengProgressState.campaignProgress?.nextBattleTitle !== '이릉 진격로'
|
||||
) {
|
||||
@@ -6145,7 +6145,7 @@ try {
|
||||
if (
|
||||
postYilingProgressState?.activeTab !== 'progress' ||
|
||||
postYilingProgressState.campaignProgress?.completedKnown !== 45 ||
|
||||
postYilingProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postYilingProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postYilingProgressState.campaignProgress?.latestBattleTitle !== '이릉 진격로' ||
|
||||
postYilingProgressState.campaignProgress?.nextBattleTitle !== '이릉 화공전'
|
||||
) {
|
||||
@@ -6303,7 +6303,7 @@ try {
|
||||
if (
|
||||
postYilingFireProgressState?.activeTab !== 'progress' ||
|
||||
postYilingFireProgressState.campaignProgress?.completedKnown !== 46 ||
|
||||
postYilingFireProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postYilingFireProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postYilingFireProgressState.campaignProgress?.latestBattleTitle !== '이릉 화공전' ||
|
||||
postYilingFireProgressState.campaignProgress?.nextBattleTitle !== '백제성 유탁'
|
||||
) {
|
||||
@@ -6369,7 +6369,7 @@ try {
|
||||
if (
|
||||
postBaidiProgressState?.activeTab !== 'progress' ||
|
||||
postBaidiProgressState.campaignProgress?.completedKnown !== 46 ||
|
||||
postBaidiProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postBaidiProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postBaidiProgressState.campaignProgress?.latestBattleTitle !== '이릉 화공전' ||
|
||||
postBaidiProgressState.campaignProgress?.nextBattleTitle !== '남중 안정로'
|
||||
) {
|
||||
@@ -6530,7 +6530,7 @@ try {
|
||||
if (
|
||||
postNanzhongProgressState?.activeTab !== 'progress' ||
|
||||
postNanzhongProgressState.campaignProgress?.completedKnown !== 47 ||
|
||||
postNanzhongProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postNanzhongProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postNanzhongProgressState.campaignProgress?.latestBattleTitle !== '남중 안정로' ||
|
||||
postNanzhongProgressState.campaignProgress?.nextBattleTitle !== '맹획 본대전'
|
||||
) {
|
||||
@@ -6692,7 +6692,7 @@ try {
|
||||
if (
|
||||
postMengHuoProgressState?.activeTab !== 'progress' ||
|
||||
postMengHuoProgressState.campaignProgress?.completedKnown !== 48 ||
|
||||
postMengHuoProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postMengHuoProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postMengHuoProgressState.campaignProgress?.latestBattleTitle !== '맹획 본대전' ||
|
||||
postMengHuoProgressState.campaignProgress?.nextBattleTitle !== '칠종칠금 2차전'
|
||||
) {
|
||||
@@ -6854,7 +6854,7 @@ try {
|
||||
if (
|
||||
postSecondCaptureProgressState?.activeTab !== 'progress' ||
|
||||
postSecondCaptureProgressState.campaignProgress?.completedKnown !== 49 ||
|
||||
postSecondCaptureProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postSecondCaptureProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postSecondCaptureProgressState.campaignProgress?.latestBattleTitle !== '칠종칠금 2차전' ||
|
||||
postSecondCaptureProgressState.campaignProgress?.nextBattleTitle !== '칠종칠금 3차전'
|
||||
) {
|
||||
@@ -7019,7 +7019,7 @@ try {
|
||||
if (
|
||||
postThirdCaptureProgressState?.activeTab !== 'progress' ||
|
||||
postThirdCaptureProgressState.campaignProgress?.completedKnown !== 50 ||
|
||||
postThirdCaptureProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postThirdCaptureProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postThirdCaptureProgressState.campaignProgress?.latestBattleTitle !== '칠종칠금 3차전' ||
|
||||
postThirdCaptureProgressState.campaignProgress?.nextBattleTitle !== '칠종칠금 4차전'
|
||||
) {
|
||||
@@ -7185,7 +7185,7 @@ try {
|
||||
if (
|
||||
postFourthCaptureProgressState?.activeTab !== 'progress' ||
|
||||
postFourthCaptureProgressState.campaignProgress?.completedKnown !== 51 ||
|
||||
postFourthCaptureProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postFourthCaptureProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postFourthCaptureProgressState.campaignProgress?.latestBattleTitle !== '칠종칠금 4차전' ||
|
||||
postFourthCaptureProgressState.campaignProgress?.nextBattleTitle !== '칠종칠금 5차전'
|
||||
) {
|
||||
@@ -7351,7 +7351,7 @@ try {
|
||||
if (
|
||||
postFifthCaptureProgressState?.activeTab !== 'progress' ||
|
||||
postFifthCaptureProgressState.campaignProgress?.completedKnown !== 52 ||
|
||||
postFifthCaptureProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postFifthCaptureProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postFifthCaptureProgressState.campaignProgress?.latestBattleTitle !== '칠종칠금 5차전' ||
|
||||
postFifthCaptureProgressState.campaignProgress?.nextBattleTitle !== '칠종칠금 6차전'
|
||||
) {
|
||||
@@ -7516,7 +7516,7 @@ try {
|
||||
if (
|
||||
postSixthCaptureProgressState?.activeTab !== 'progress' ||
|
||||
postSixthCaptureProgressState.campaignProgress?.completedKnown !== 53 ||
|
||||
postSixthCaptureProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postSixthCaptureProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postSixthCaptureProgressState.campaignProgress?.latestBattleTitle !== '칠종칠금 6차전' ||
|
||||
postSixthCaptureProgressState.campaignProgress?.nextBattleTitle !== '칠종칠금 7차전'
|
||||
) {
|
||||
@@ -7682,7 +7682,7 @@ try {
|
||||
if (
|
||||
postFinalCaptureProgressState?.activeTab !== 'progress' ||
|
||||
postFinalCaptureProgressState.campaignProgress?.completedKnown !== 54 ||
|
||||
postFinalCaptureProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postFinalCaptureProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postFinalCaptureProgressState.campaignProgress?.activeChapter?.id !== 'northern-campaign' ||
|
||||
postFinalCaptureProgressState.campaignProgress?.latestBattleTitle !== '칠종칠금 7차전' ||
|
||||
!String(postFinalCaptureProgressState.campaignProgress?.nextBattleTitle ?? '').includes('북벌 준비')
|
||||
@@ -7755,7 +7755,7 @@ try {
|
||||
if (
|
||||
postNorthernPrepProgressState?.activeTab !== 'progress' ||
|
||||
postNorthernPrepProgressState.campaignProgress?.completedKnown !== 54 ||
|
||||
postNorthernPrepProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postNorthernPrepProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postNorthernPrepProgressState.campaignProgress?.activeChapter?.id !== 'northern-campaign' ||
|
||||
postNorthernPrepProgressState.campaignProgress?.latestBattleTitle !== '칠종칠금 7차전' ||
|
||||
postNorthernPrepProgressState.campaignProgress?.nextBattleTitle !== '제1차 북벌 출진로'
|
||||
@@ -7905,7 +7905,7 @@ try {
|
||||
if (
|
||||
postFiftyFifthProgressState?.activeTab !== 'progress' ||
|
||||
postFiftyFifthProgressState.campaignProgress?.completedKnown !== 55 ||
|
||||
postFiftyFifthProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postFiftyFifthProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postFiftyFifthProgressState.campaignProgress?.activeChapter?.id !== 'northern-campaign' ||
|
||||
postFiftyFifthProgressState.campaignProgress?.latestBattleTitle !== '제1차 북벌 출진로' ||
|
||||
postFiftyFifthProgressState.campaignProgress?.nextBattleTitle !== '천수 진군로'
|
||||
@@ -8055,7 +8055,7 @@ try {
|
||||
if (
|
||||
postFiftySixthProgressState?.activeTab !== 'progress' ||
|
||||
postFiftySixthProgressState.campaignProgress?.completedKnown !== 56 ||
|
||||
postFiftySixthProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postFiftySixthProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postFiftySixthProgressState.campaignProgress?.activeChapter?.id !== 'northern-campaign' ||
|
||||
postFiftySixthProgressState.campaignProgress?.latestBattleTitle !== '천수 진군로' ||
|
||||
postFiftySixthProgressState.campaignProgress?.nextBattleTitle !== '가정 배치 위기'
|
||||
@@ -8210,7 +8210,7 @@ try {
|
||||
if (
|
||||
postFiftySeventhProgressState?.activeTab !== 'progress' ||
|
||||
postFiftySeventhProgressState.campaignProgress?.completedKnown !== 57 ||
|
||||
postFiftySeventhProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postFiftySeventhProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postFiftySeventhProgressState.campaignProgress?.activeChapter?.id !== 'northern-campaign' ||
|
||||
postFiftySeventhProgressState.campaignProgress?.latestBattleTitle !== '가정 배치 위기' ||
|
||||
postFiftySeventhProgressState.campaignProgress?.nextBattleTitle !== '기산 후퇴로'
|
||||
@@ -8361,7 +8361,7 @@ try {
|
||||
if (
|
||||
postFiftyEighthProgressState?.activeTab !== 'progress' ||
|
||||
postFiftyEighthProgressState.campaignProgress?.completedKnown !== 58 ||
|
||||
postFiftyEighthProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postFiftyEighthProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postFiftyEighthProgressState.campaignProgress?.activeChapter?.id !== 'northern-campaign' ||
|
||||
postFiftyEighthProgressState.campaignProgress?.latestBattleTitle !== '기산 후퇴로' ||
|
||||
postFiftyEighthProgressState.campaignProgress?.nextBattleTitle !== '진창 공성전'
|
||||
@@ -8512,7 +8512,7 @@ try {
|
||||
if (
|
||||
postFiftyNinthProgressState?.activeTab !== 'progress' ||
|
||||
postFiftyNinthProgressState.campaignProgress?.completedKnown !== 59 ||
|
||||
postFiftyNinthProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postFiftyNinthProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postFiftyNinthProgressState.campaignProgress?.activeChapter?.id !== 'northern-campaign' ||
|
||||
postFiftyNinthProgressState.campaignProgress?.latestBattleTitle !== '진창 공성전' ||
|
||||
postFiftyNinthProgressState.campaignProgress?.nextBattleTitle !== '무도·음평 확보전'
|
||||
@@ -8669,7 +8669,7 @@ try {
|
||||
if (
|
||||
postSixtiethProgressState?.activeTab !== 'progress' ||
|
||||
postSixtiethProgressState.campaignProgress?.completedKnown !== 60 ||
|
||||
postSixtiethProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postSixtiethProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postSixtiethProgressState.campaignProgress?.activeChapter?.id !== 'northern-campaign' ||
|
||||
postSixtiethProgressState.campaignProgress?.latestBattleTitle !== '무도·음평 확보전' ||
|
||||
postSixtiethProgressState.campaignProgress?.nextBattleTitle !== '한중 우로 방어전'
|
||||
@@ -8829,15 +8829,178 @@ try {
|
||||
if (
|
||||
postSixtyFirstProgressState?.activeTab !== 'progress' ||
|
||||
postSixtyFirstProgressState.campaignProgress?.completedKnown !== 61 ||
|
||||
postSixtyFirstProgressState.campaignProgress?.totalKnown !== 61 ||
|
||||
postSixtyFirstProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postSixtyFirstProgressState.campaignProgress?.activeChapter?.id !== 'northern-campaign' ||
|
||||
postSixtyFirstProgressState.campaignProgress?.latestBattleTitle !== '한중 우로 방어전' ||
|
||||
postSixtyFirstProgressState.campaignProgress?.nextBattleTitle !== '준비 중'
|
||||
postSixtyFirstProgressState.campaignProgress?.nextBattleTitle !== '기산 재출정전'
|
||||
) {
|
||||
throw new Error(`Expected post-sixty-first progress tab to complete Hanzhong rainy-pass defense and leave the next northern step pending: ${JSON.stringify(postSixtyFirstProgressState?.campaignProgress)}`);
|
||||
throw new Error(`Expected post-sixty-first progress tab to complete Hanzhong rainy-pass defense and point toward Qishan renewed offensive: ${JSON.stringify(postSixtyFirstProgressState?.campaignProgress)}`);
|
||||
}
|
||||
await page.screenshot({ path: 'dist/verification-post-sixty-first-progress.png', fullPage: true });
|
||||
|
||||
await page.mouse.click(1120, 38);
|
||||
await page.waitForTimeout(180);
|
||||
const qishanRenewedSortieState = await page.evaluate(() => window.__HEROS_DEBUG__?.camp());
|
||||
if (
|
||||
!qishanRenewedSortieState?.sortieVisible ||
|
||||
qishanRenewedSortieState.campaign?.step !== 'sixty-first-camp' ||
|
||||
qishanRenewedSortieState.campTitle !== '한중 우로 방어 후 군영' ||
|
||||
!String(qishanRenewedSortieState.sortiePlan?.objectiveLine ?? '').includes('기산 재출정전') ||
|
||||
!String(qishanRenewedSortieState.sortiePlan?.objectiveLine ?? '').includes('노성 지연선') ||
|
||||
qishanRenewedSortieState.sortiePlan?.maxCount !== 7 ||
|
||||
qishanRenewedSortieState.sortiePlan?.recommendedTotal !== 9 ||
|
||||
!qishanRenewedSortieState.sortieRoster?.some((unit) => unit.id === 'zhuge-liang' && unit.selected && unit.required) ||
|
||||
!qishanRenewedSortieState.sortieRoster?.some((unit) => unit.id === 'jiang-wei' && unit.recommended) ||
|
||||
!qishanRenewedSortieState.sortieRoster?.some((unit) => unit.id === 'wei-yan' && unit.recommended) ||
|
||||
!qishanRenewedSortieState.sortieRoster?.some((unit) => unit.id === 'zhao-yun' && unit.recommended) ||
|
||||
!qishanRenewedSortieState.sortieRoster?.some((unit) => unit.id === 'wang-ping' && unit.recommended) ||
|
||||
!qishanRenewedSortieState.sortieRoster?.some((unit) => unit.id === 'huang-quan' && unit.recommended) ||
|
||||
!qishanRenewedSortieState.sortieRoster?.some((unit) => unit.id === 'ma-liang' && unit.recommended) ||
|
||||
!qishanRenewedSortieState.sortieRoster?.some((unit) => unit.id === 'li-yan' && unit.recommended) ||
|
||||
!qishanRenewedSortieState.sortieRoster?.some((unit) => unit.id === 'ma-dai' && unit.recommended) ||
|
||||
qishanRenewedSortieState.sortieRoster?.some((unit) => unit.id === 'liu-bei')
|
||||
) {
|
||||
throw new Error(`Expected Qishan renewed sortie to require Zhuge Liang, exclude Liu Bei, and recommend nine competing offensive/return-line roles: ${JSON.stringify(qishanRenewedSortieState)}`);
|
||||
}
|
||||
assertSortieTacticalRoster(qishanRenewedSortieState, [
|
||||
'guan-yu', 'zhang-fei', 'jian-yong', 'mi-zhu', 'sun-qian', 'zhao-yun', 'zhuge-liang', 'ma-liang', 'yi-ji', 'gong-zhi', 'huang-zhong', 'wei-yan', 'pang-tong', 'fa-zheng', 'wu-yi', 'yan-yan', 'li-yan', 'huang-quan', 'ma-chao', 'ma-dai', 'wang-ping', 'jiang-wei'
|
||||
]);
|
||||
|
||||
const qishanRenewedPriorityUnits = ['jiang-wei', 'wei-yan', 'zhao-yun', 'wang-ping', 'huang-quan', 'ma-liang'];
|
||||
for (const unitId of qishanRenewedPriorityUnits) {
|
||||
const currentSortieState = await page.evaluate(() => window.__HEROS_DEBUG__?.camp());
|
||||
if (!currentSortieState.sortieRoster?.some((unit) => unit.id === unitId && unit.selected)) {
|
||||
const removable = currentSortieState.sortieRoster?.find(
|
||||
(unit) => unit.selected && !unit.required && !qishanRenewedPriorityUnits.includes(unit.id)
|
||||
);
|
||||
if (removable) {
|
||||
await clickSortieRosterUnit(page, removable.id);
|
||||
}
|
||||
await clickSortieRosterUnit(page, unitId);
|
||||
}
|
||||
}
|
||||
|
||||
const qishanRenewedSortieReadyState = await page.evaluate(() => window.__HEROS_DEBUG__?.camp());
|
||||
if (
|
||||
!qishanRenewedPriorityUnits.every((unitId) =>
|
||||
qishanRenewedSortieReadyState.sortieRoster?.some((unit) => unit.id === unitId && unit.selected)
|
||||
) ||
|
||||
!qishanRenewedSortieReadyState.sortieRoster?.some((unit) => unit.id === 'zhuge-liang' && unit.selected && unit.required) ||
|
||||
qishanRenewedSortieReadyState.sortieRoster?.some((unit) => unit.id === 'liu-bei') ||
|
||||
qishanRenewedSortieReadyState.sortieRoster?.some((unit) => unit.id === 'li-yan' && unit.selected) ||
|
||||
qishanRenewedSortieReadyState.sortieRoster?.some((unit) => unit.id === 'ma-dai' && unit.selected) ||
|
||||
qishanRenewedSortieReadyState.sortiePlan?.selectedCount !== 7 ||
|
||||
qishanRenewedSortieReadyState.sortiePlan?.recommendedSelectedCount < 7 ||
|
||||
qishanRenewedSortieReadyState.sortiePlan?.recommendedTotal !== 9
|
||||
) {
|
||||
throw new Error(`Expected Qishan renewed sortie to deploy Zhuge Liang plus six forward/return-line officers while benching Li Yan and Ma Dai: ${JSON.stringify(qishanRenewedSortieReadyState)}`);
|
||||
}
|
||||
await page.screenshot({ path: 'dist/verification-sixty-second-sortie.png', fullPage: true });
|
||||
|
||||
await page.mouse.click(1068, 646);
|
||||
await page.waitForFunction(() => {
|
||||
const activeScenes = window.__HEROS_DEBUG__?.activeScenes() ?? [];
|
||||
return activeScenes.includes('StoryScene');
|
||||
});
|
||||
await page.screenshot({ path: 'dist/verification-sixty-second-story.png', fullPage: true });
|
||||
|
||||
for (let i = 0; i < 50; i += 1) {
|
||||
const enteredSixtySecondBattle = await page.evaluate(() => {
|
||||
const state = window.__HEROS_DEBUG__?.battle();
|
||||
return state?.scene === 'BattleScene' && state?.battleId === 'sixty-second-battle-qishan-renewed-offensive';
|
||||
});
|
||||
if (enteredSixtySecondBattle) {
|
||||
break;
|
||||
}
|
||||
await page.keyboard.press('Space');
|
||||
await page.waitForTimeout(320);
|
||||
}
|
||||
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';
|
||||
});
|
||||
await page.screenshot({ path: 'dist/verification-sixty-second-battle.png', fullPage: true });
|
||||
|
||||
const sixtySecondBattleState = await page.evaluate(() => window.__HEROS_DEBUG__?.battle());
|
||||
const sixtySecondEnemies = sixtySecondBattleState.units.filter((unit) => unit.faction === 'enemy');
|
||||
const sixtySecondAllies = sixtySecondBattleState.units.filter((unit) => unit.faction === 'ally');
|
||||
const sixtySecondEnemyBehaviors = new Set(sixtySecondEnemies.map((unit) => unit.ai));
|
||||
if (
|
||||
sixtySecondBattleState.camera?.mapWidth !== 124 ||
|
||||
sixtySecondBattleState.camera?.mapHeight !== 106 ||
|
||||
sixtySecondBattleState.mapTextureKey !== 'battle-map-sixty-second' ||
|
||||
sixtySecondBattleState.mapTextureReady !== true ||
|
||||
sixtySecondBattleState.mapBackgroundReady !== true ||
|
||||
sixtySecondBattleState.victoryConditionLabel !== '노성 지연선 돌파와 기산 보급로 전진' ||
|
||||
!sixtySecondBattleState.objectives?.some((objective) => objective.id === 'press-sima-yi-delay-line' && objective.label === '사마의 지연선 돌파') ||
|
||||
!sixtySecondBattleState.objectives?.some((objective) => objective.id === 'check-zhang-he-pursuit' && objective.label === '장합 추격대 저지') ||
|
||||
!sixtySecondBattleState.objectives?.some((objective) => objective.id === 'break-guo-huai-flank' && objective.label === '곽회 측면 차단 해제') ||
|
||||
!sixtySecondBattleState.objectives?.some((objective) => objective.id === 'qishan-supply-camps' && objective.label === '기산 보급 진영 유지') ||
|
||||
!sixtySecondBattleState.objectives?.some((objective) => objective.id === 'lucheng-front-villages' && objective.label === '노성 앞 마을 안심') ||
|
||||
sixtySecondEnemies.length < 42 ||
|
||||
!sixtySecondEnemyBehaviors.has('aggressive') ||
|
||||
!sixtySecondEnemyBehaviors.has('guard') ||
|
||||
!sixtySecondEnemyBehaviors.has('hold') ||
|
||||
!sixtySecondEnemies.some((unit) => unit.id === 'northern-eighth-leader-sima-yi') ||
|
||||
!sixtySecondEnemies.some((unit) => unit.id === 'northern-eighth-officer-zhang-he') ||
|
||||
!sixtySecondEnemies.some((unit) => unit.id === 'northern-eighth-officer-guo-huai') ||
|
||||
!sixtySecondAllies.some((unit) => unit.id === 'zhuge-liang') ||
|
||||
!sixtySecondAllies.some((unit) => unit.id === 'jiang-wei') ||
|
||||
!sixtySecondAllies.some((unit) => unit.id === 'wei-yan') ||
|
||||
!sixtySecondAllies.some((unit) => unit.id === 'zhao-yun') ||
|
||||
!sixtySecondAllies.some((unit) => unit.id === 'wang-ping') ||
|
||||
!sixtySecondAllies.some((unit) => unit.id === 'huang-quan') ||
|
||||
!sixtySecondAllies.some((unit) => unit.id === 'ma-liang') ||
|
||||
sixtySecondAllies.some((unit) => unit.id === 'li-yan') ||
|
||||
sixtySecondAllies.some((unit) => unit.id === 'ma-dai') ||
|
||||
sixtySecondAllies.some((unit) => unit.id === 'liu-bei')
|
||||
) {
|
||||
throw new Error(`Expected sixty-second battle to use the Qishan renewed-offensive map, Sima Yi/Zhang He/Guo Huai objectives, selected forward/return-line officers, and mixed Wei AI: ${JSON.stringify(sixtySecondBattleState)}`);
|
||||
}
|
||||
|
||||
await page.evaluate(() => window.__HEROS_DEBUG__?.forceBattleOutcome('victory'));
|
||||
await page.waitForFunction(() => {
|
||||
const state = window.__HEROS_DEBUG__?.battle();
|
||||
return state?.battleOutcome === 'victory' && state?.phase === 'resolved' && state?.resultVisible === true;
|
||||
});
|
||||
|
||||
await page.mouse.click(738, 642);
|
||||
await page.waitForFunction(() => {
|
||||
const activeScenes = window.__HEROS_DEBUG__?.activeScenes() ?? [];
|
||||
return activeScenes.includes('CampScene');
|
||||
});
|
||||
|
||||
const sixtySecondCampState = await page.evaluate(() => window.__HEROS_DEBUG__?.camp());
|
||||
if (
|
||||
sixtySecondCampState?.campBattleId !== 'sixty-second-battle-qishan-renewed-offensive' ||
|
||||
sixtySecondCampState.campaign?.step !== 'sixty-second-camp' ||
|
||||
sixtySecondCampState.campTitle !== '기산 재출정 후 군영' ||
|
||||
sixtySecondCampState.availableDialogueIds?.length !== 3 ||
|
||||
!sixtySecondCampState.availableDialogueIds.every((id) => id.startsWith('northern-eighth-')) ||
|
||||
sixtySecondCampState.availableVisitIds?.length !== 1 ||
|
||||
!sixtySecondCampState.availableVisitIds.every((id) => id.startsWith('northern-eighth-')) ||
|
||||
sixtySecondCampState.rosterCollection?.total < 22 ||
|
||||
!sixtySecondCampState.report?.bonds?.some((bond) => bond.id === 'jiang-wei__wei-yan_northern-eighth')
|
||||
) {
|
||||
throw new Error(`Expected Qishan renewed-offensive aftermath camp to expose eighth northern campaign events and bonds: ${JSON.stringify(sixtySecondCampState)}`);
|
||||
}
|
||||
await page.screenshot({ path: 'dist/verification-sixty-second-camp.png', fullPage: true });
|
||||
|
||||
await page.mouse.click(966, 38);
|
||||
await page.waitForTimeout(180);
|
||||
const postSixtySecondProgressState = await page.evaluate(() => window.__HEROS_DEBUG__?.camp());
|
||||
if (
|
||||
postSixtySecondProgressState?.activeTab !== 'progress' ||
|
||||
postSixtySecondProgressState.campaignProgress?.completedKnown !== 62 ||
|
||||
postSixtySecondProgressState.campaignProgress?.totalKnown !== 62 ||
|
||||
postSixtySecondProgressState.campaignProgress?.activeChapter?.id !== 'northern-campaign' ||
|
||||
postSixtySecondProgressState.campaignProgress?.latestBattleTitle !== '기산 재출정전' ||
|
||||
postSixtySecondProgressState.campaignProgress?.nextBattleTitle !== '준비 중'
|
||||
) {
|
||||
throw new Error(`Expected post-sixty-second progress tab to complete Qishan renewed offensive and leave the next northern step pending: ${JSON.stringify(postSixtySecondProgressState?.campaignProgress)}`);
|
||||
}
|
||||
await page.screenshot({ path: 'dist/verification-post-sixty-second-progress.png', fullPage: true });
|
||||
|
||||
await page.evaluate(() => {
|
||||
const game = window.__HEROS_GAME__;
|
||||
game?.scene.stop('CampScene');
|
||||
@@ -8866,12 +9029,12 @@ try {
|
||||
}
|
||||
}
|
||||
for (let attempt = 0; attempt < 24; attempt += 1) {
|
||||
const continuedToRainDefenseCamp = await page.evaluate(() => {
|
||||
const continuedToQishanRenewedCamp = await page.evaluate(() => {
|
||||
const activeScenes = window.__HEROS_DEBUG__?.activeScenes() ?? [];
|
||||
const camp = window.__HEROS_DEBUG__?.camp?.() ?? null;
|
||||
return activeScenes.includes('CampScene') && camp?.campaign?.step === 'sixty-first-camp';
|
||||
return activeScenes.includes('CampScene') && camp?.campaign?.step === 'sixty-second-camp';
|
||||
});
|
||||
if (continuedToRainDefenseCamp) {
|
||||
if (continuedToQishanRenewedCamp) {
|
||||
break;
|
||||
}
|
||||
await page.keyboard.press('Space');
|
||||
@@ -8880,17 +9043,17 @@ try {
|
||||
await page.waitForFunction(() => {
|
||||
const activeScenes = window.__HEROS_DEBUG__?.activeScenes() ?? [];
|
||||
const camp = window.__HEROS_DEBUG__?.camp?.() ?? null;
|
||||
return activeScenes.includes('CampScene') && camp?.campaign?.step === 'sixty-first-camp';
|
||||
return activeScenes.includes('CampScene') && camp?.campaign?.step === 'sixty-second-camp';
|
||||
});
|
||||
const titleContinueState = await page.evaluate(() => ({
|
||||
activeScenes: window.__HEROS_DEBUG__?.activeScenes() ?? [],
|
||||
camp: window.__HEROS_DEBUG__?.camp?.() ?? null
|
||||
}));
|
||||
if (!titleContinueState.activeScenes.includes('CampScene') || titleContinueState.camp?.campaign?.step !== 'sixty-first-camp') {
|
||||
throw new Error(`Expected title continue to reopen the Hanzhong rainy-pass aftermath camp: ${JSON.stringify(titleContinueState)}`);
|
||||
if (!titleContinueState.activeScenes.includes('CampScene') || titleContinueState.camp?.campaign?.step !== 'sixty-second-camp') {
|
||||
throw new Error(`Expected title continue to reopen the Qishan renewed-offensive aftermath camp: ${JSON.stringify(titleContinueState)}`);
|
||||
}
|
||||
|
||||
console.log(`Verified title-to-Hanzhong-rain-defense flow, recruited officer sortie selection, Ma Liang, Yi Ji, Gong Zhi, Huang Zhong, Wei Yan, Pang Tong, Fa Zheng, Wu Yi, Yan Yan, Li Yan, Huang Quan, Ma Chao, Ma Dai, Wang Ping joins, Luofeng, Luo main gate, Mianzhu, Chengdu surrender, Jiameng, Yangping, Dingjun, Hanzhong decisive battle, King of Hanzhong council, Shu-Han foundation state, Jing Province defense vanguard, Fan Castle vanguard, Han River flood, Fan siege, Jing rear crisis, Gongan collapse, Maicheng isolation, Yiling vanguard, Yiling fire attack, Baidi entrustment, Nanzhong stabilization, Meng Huo pacification, second capture, third capture, fourth capture, fifth capture, sixth capture, final capture, northern campaign preparation, Qishan road first northern expedition, Tianshui advance, Jieting crisis, Jiang Wei joining, Qishan retreat, Chencang siege, Wudu/Yinping commanderies, Hanzhong rainy-pass defense, and pending next northern step state at ${targetUrl}`);
|
||||
console.log(`Verified title-to-Qishan-renewed-offensive flow, recruited officer sortie selection, Ma Liang, Yi Ji, Gong Zhi, Huang Zhong, Wei Yan, Pang Tong, Fa Zheng, Wu Yi, Yan Yan, Li Yan, Huang Quan, Ma Chao, Ma Dai, Wang Ping joins, Luofeng, Luo main gate, Mianzhu, Chengdu surrender, Jiameng, Yangping, Dingjun, Hanzhong decisive battle, King of Hanzhong council, Shu-Han foundation state, Jing Province defense vanguard, Fan Castle vanguard, Han River flood, Fan siege, Jing rear crisis, Gongan collapse, Maicheng isolation, Yiling vanguard, Yiling fire attack, Baidi entrustment, Nanzhong stabilization, Meng Huo pacification, second capture, third capture, fourth capture, fifth capture, sixth capture, final capture, northern campaign preparation, Qishan road first northern expedition, Tianshui advance, Jieting crisis, Jiang Wei joining, Qishan retreat, Chencang siege, Wudu/Yinping commanderies, Hanzhong rainy-pass defense, Qishan renewed offensive, and pending next northern step state at ${targetUrl}`);
|
||||
} finally {
|
||||
await browser?.close();
|
||||
if (serverProcess && !serverProcess.killed) {
|
||||
|
||||
Reference in New Issue
Block a user