feat: cursor-steered headlights light the hero name, plates and world
This commit is contained in:
@@ -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');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user