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:
@@ -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}`);
|
||||
|
||||
Reference in New Issue
Block a user