Lets the CI preview server stand in for the contact API
With contactForm.enabled=true the e2e and Lighthouse runs asked a token route that CI does not have (404, console error, run 666). The preview server gets an opt-in --contact-stub (token 200 without captcha, submit 202); the e2e server helper and the Lighthouse start command switch it on. Tests that need another answer still replace it per page with page.route. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -140,7 +140,7 @@ module.exports = {
|
||||
ci: {
|
||||
collect: {
|
||||
startServerCommand:
|
||||
'pnpm preview --port 4173 --strictPort --audit-route',
|
||||
'pnpm preview --port 4173 --strictPort --audit-route --contact-stub',
|
||||
startServerReadyPattern: 'Local',
|
||||
url: [...indexedPaths, ...noindexPaths, notFoundPath].map(
|
||||
(path) => origin + path,
|
||||
|
||||
Reference in New Issue
Block a user