U6: prerender statische tekst bij build, OG-afbeelding (simpele versie), opzet privacyverklaring

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-13 10:26:50 +01:00
co-authored by Claude Sonnet 5.5
parent 9516956d00
commit d38463465d
9 changed files with 182 additions and 4 deletions
+19
View File
@@ -0,0 +1,19 @@
import { renderToString } from 'react-dom/server';
import { describe, expect, it } from 'vitest';
import { StaticLanding } from './StaticLanding';
import { heroContent } from '../features/landing/data/content';
describe('StaticLanding (prerender)', () => {
const html = renderToString(<StaticLanding />);
it('contains the hero heading and the section headings', () => {
expect(html).toContain('<h1');
expect(html).toContain(heroContent.heading.replace('&', '&amp;'));
expect(html).toContain('Eén ontwikkelaar, korte lijnen');
expect(html).toContain('Van idee naar live in drie stappen');
});
it('does not render the dynamic contact panel', () => {
expect(html).not.toContain('data-testid="contact-panel"');
});
});