feat: cursor-steered headlights light the hero name, plates and world

This commit is contained in:
2026-10-11 05:07:05 +03:00
parent 52b4a1ad14
commit c9e6ac0f29
41 changed files with 1196 additions and 9 deletions

View File

@@ -162,3 +162,17 @@ describe('the 03:12 window on the server', () => {
expect(subline?.textContent).toBe('');
});
});
describe('HIGH BEAM on the server', () => {
it('ships no beam state: the name renders fully lit and its text is unchanged', async () => {
const html = await render('/', validInputs);
expect(html).not.toContain('data-beam');
expect(html).not.toContain('--beam-');
const document = await renderedDocument();
expect(document.documentElement.hasAttribute('data-beam')).toBe(false);
expect(document.querySelector('#start h1')?.textContent).toBe('Luca Pîslaru');
const name = document.querySelector('.hero-name__text');
expect(name?.getAttribute('data-name')).toBe('Luca Pîslaru');
expect(name?.textContent).toBe('Luca Pîslaru');
});
});