test: add error recovery overlay test case#6821
Conversation
✅ Deploy Preview for rsbuild ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
Pull request overview
This PR adds a new end-to-end test case for error overlay recovery functionality. The test verifies that the error overlay appears when a syntax error is introduced and disappears after the error is fixed and a successful rebuild occurs.
- Adds test infrastructure files (React components, Rsbuild config) for the error-recovery test case
- Creates a test that introduces a JSX syntax error, waits for build failure, fixes the error, and verifies overlay dismissal
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| e2e/cases/overlay/error-recovery/index.test.ts | Test case that verifies error overlay is hidden after resolving a build error |
| e2e/cases/overlay/error-recovery/src/index.jsx | React entry point for the test application |
| e2e/cases/overlay/error-recovery/src/App.jsx | Simple React component used in the error recovery test |
| e2e/cases/overlay/error-recovery/rsbuild.config.ts | Rsbuild configuration for the error-recovery test case |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Summary
Added a new test that simulates a build error by introducing a syntax error, checks for the error overlay, then fixes the error and verifies that the overlay is hidden after a successful rebuild.
Checklist