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:
@@ -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('&', '&'));
|
||||
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"');
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user