Adds the captcha frame hosts to the CSP and handles a widget that cannot load
frame-src gets the three exact Friendly Captcha global hosts (no wildcard). When the widget errors, is blocked or shows no sign of life, the form says so and offers the mail button instead of blocking silently. Adds an e2e for the form with a mocked API, a draft privacy text for approval, and label tests. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -168,7 +168,7 @@ describe('zoekwaarden na de hydratatie', () => {
|
||||
server.origin + '/?pakket=gezin#contact',
|
||||
);
|
||||
await waitForHydration(page);
|
||||
await eventually(() => shootField(page).inputValue()).toBe('gezin');
|
||||
await eventually(() => shootField(page).inputValue()).toBe('Gezin');
|
||||
// De tidy-navigatie haalt de zoekwaarde weg, de hash blijft
|
||||
await page.waitForFunction(() => location.search === '');
|
||||
expect(new URL(page.url()).hash).toBe('#contact');
|
||||
@@ -181,7 +181,7 @@ describe('zoekwaarden na de hydratatie', () => {
|
||||
server.origin + '/contact?pakket=gezin',
|
||||
);
|
||||
await waitForHydration(page);
|
||||
await eventually(() => shootField(page).inputValue()).toBe('gezin');
|
||||
await eventually(() => shootField(page).inputValue()).toBe('Gezin');
|
||||
await page.waitForFunction(() => location.search === '');
|
||||
expect(new URL(page.url()).pathname).toBe('/contact');
|
||||
expect(opened.messages).toEqual([]);
|
||||
|
||||
Reference in New Issue
Block a user