Restore golden-save host tests for slice 6 after later formats stopped loading historic files.
Phase 39 dropped GoldenSaveTests when format 2 saves became unstartable. Recheck restores the missing-field and seed-equals-id assertions against a stamped copy, and records the recheck. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -73,6 +73,20 @@ describe('GameScreen speed buttons', () => {
|
||||
expect(labels).toEqual(['×½', '×1', '×2', '×5', '×10']);
|
||||
});
|
||||
|
||||
it('shows the school seed in the header', () => {
|
||||
const screen = new GameScreen({
|
||||
onLeave: () => {},
|
||||
onSetRunning: () => {},
|
||||
onSetSpeed: () => {},
|
||||
onSkip: () => {},
|
||||
});
|
||||
|
||||
document.body.append(screen.element);
|
||||
screen.show(school({ seed: 42, name: 'Seeded' }));
|
||||
|
||||
expect(screen.element.querySelector('.screen__seed')?.textContent).toBe(t('schoolSeed', { seed: 42 }));
|
||||
});
|
||||
|
||||
it('hides management and clock controls for a guest school', () => {
|
||||
const screen = new GameScreen({
|
||||
onLeave: () => {},
|
||||
|
||||
Reference in New Issue
Block a user