Skip to content

Conversation

justinvdm
Copy link
Collaborator

This change introduces automatic client-side error checking to the end-to-end test harness. Previously, tests would only fail based on their explicit assertions, potentially missing uncaught JavaScript errors that could indicate a broken user experience.

The test harness now monitors for page errors (including console errors and uncaught exceptions) during test execution. If any such errors are detected, the test will fail, providing immediate feedback on runtime issues.

A new option, checkForPageErrors, has been added to the test runners (testDev, testDeploy, testDevAndDeploy). This allows specific tests to opt-out of this behavior if client-side errors are expected. By default, error checking is enabled.

Testing

@cloudflare-workers-and-pages
Copy link

Deploying redwood-sdk-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: ff1ab71
Status: ✅  Deploy successful!
Preview URL: https://4ceb6f32.redwood-sdk-docs.pages.dev
Branch Preview URL: https://e2e-runtime-errors.redwood-sdk-docs.pages.dev

View logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants