Adds the Prijzen section to the homepage
Shows the three live packages as cards with their price and what is included. Each card links to the contact section with ?pakket=<id>, so the contact form can preselect it. Invalid packages from the CMS are skipped and the pakket value is only accepted when it names a package. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -132,6 +132,7 @@ describe('homepage', () => {
|
||||
screen.getByRole('region', {
|
||||
name: 'Lifestyle fotograaf met een passie voor storytelling',
|
||||
}),
|
||||
screen.getByRole('region', { name: 'Prijzen' }),
|
||||
];
|
||||
|
||||
let previous: Element = hero;
|
||||
@@ -147,6 +148,19 @@ describe('homepage', () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('homepage ?pakket=', () => {
|
||||
it.each(['/?pakket=newborn', '/?pakket=123', '/?pakket=%3Cscript%3E'])(
|
||||
'%s renders the homepage without errors',
|
||||
async (path) => {
|
||||
await renderApp(path);
|
||||
expect(
|
||||
await screen.findByRole('region', { name: 'Prijzen' }),
|
||||
).toBeInTheDocument();
|
||||
expect(document.body).not.toHaveTextContent('<script>');
|
||||
},
|
||||
);
|
||||
});
|
||||
|
||||
describe('pagina-register', () => {
|
||||
it('bevat precies de routes van de route tree', async () => {
|
||||
const { router } = await renderApp('/');
|
||||
|
||||
Reference in New Issue
Block a user