feat: 과거 장수 전투 결과 보존 이관 추가
preserved batres 파일을 기수 단위로 검증·체크포인트하고 과거 장수 상세에 연결한다. check-plan에는 전체 이전 항목과 정보 설명을 함께 노출한다.
This commit is contained in:
@@ -115,7 +115,16 @@ const installArchive = async (page: Page, options: { battleAvailable?: boolean }
|
||||
],
|
||||
},
|
||||
battleDetail: { available: false, entries: [] },
|
||||
battleResult: { available: false, entries: [] },
|
||||
battleResult: {
|
||||
available: true,
|
||||
entries: [
|
||||
{
|
||||
id: 2,
|
||||
text: '<S>◆</>214년 3월:<div class="small_war_log">관우 7000 ← 장비 0</div>',
|
||||
},
|
||||
{ id: 1, text: '<S>◆</>214년 2월:관우 6500 → 여포 0' },
|
||||
],
|
||||
},
|
||||
generalAction: { available: false, entries: [] },
|
||||
},
|
||||
});
|
||||
@@ -177,9 +186,8 @@ test('past plays is available without a current general and preserves desktop in
|
||||
await expect(page.locator('[data-log-type="battleDetail"]')).toContainText(
|
||||
'이 기수에는 전투 기록이 보존되지 않았습니다.'
|
||||
);
|
||||
await expect(page.locator('[data-log-type="battleResult"]')).toContainText(
|
||||
'이 기수에는 전투 결과가 보존되지 않았습니다.'
|
||||
);
|
||||
await expect(page.locator('[data-log-type="battleResult"]')).toContainText('214년 3월:관우 7000 ← 장비 0');
|
||||
await expect(page.locator('[data-log-type="battleResult"]')).not.toContainText('<div');
|
||||
await expect(page.locator('[data-log-type="generalAction"]')).toContainText(
|
||||
'이 기수에는 개인 기록이 보존되지 않았습니다.'
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user