This commit is contained in:
2026-04-28 02:05:12 +08:00
parent 271db02e4a
commit 1eb090e4a5
39 changed files with 2671 additions and 165 deletions

View File

@@ -466,7 +466,7 @@ function GameFlowHarness({
<div>
<button
type="button"
onClick={() => handleCustomWorldSelect(profile)}
onClick={() => handleCustomWorldSelect(profile, { mode: 'play' })}
>
</button>
@@ -528,8 +528,8 @@ test('saved custom world result settings flow into game state after entering the
});
expect(readSnapshot().playerCharacterName).toBe('沈砺');
expect(readSnapshot().runtimeMode).toBe('test');
expect(readSnapshot().runtimePersistenceDisabled).toBe(true);
expect(readSnapshot().runtimeMode).toBe('play');
expect(readSnapshot().runtimePersistenceDisabled).toBe(false);
expect(readSnapshot().playerInventoryNames).toContain('旧潮短刃');
expect(readSnapshot().playerInventoryNames).toContain('旧潮图残页');
expect(readSnapshot().playerEquipment.weapon).toBe('旧潮短刃');