Contact: Friendly Captcha v2, opstartvalidatie, ASF-host met Contact-module en hosttests (CMS-U9)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-10 23:06:23 +01:00
co-authored by Claude Sonnet 5.5
parent f43e00733a
commit 3275092401
20 changed files with 1052 additions and 21 deletions
@@ -234,6 +234,36 @@ describe('Message list', () => {
);
});
it('shows a subject label with special characters as plain text', async () => {
const label = `Fotoshoot & <b>"bruiloft"</b> 'zomer'`;
server.use(
http.get(`${API_BASE}/api/v1/contact-messages`, () =>
HttpResponse.json({
items: [
{
id: MSG_NEW,
receivedAt: '2026-11-09T10:00:00Z',
name: 'Jan',
email: 'jan@example.nl',
subject: label,
status: 'read',
mailStatus: 'sent',
},
],
page: 1,
pageSize: 25,
totalCount: 1,
unreadCount: 0,
}),
),
);
await openPage();
const row = await screen.findByTestId(`contact-row-${MSG_NEW}`);
expect(row).toHaveTextContent(label);
expect(row.querySelector('b')).toBeNull();
});
it('gives the mail icons a text alternative', async () => {
await openPage();
await screen.findByTestId(`contact-row-${MSG_NEW}`);