Skip to content

Add unit tests for global error boundary confirming fallback renders and retry resets the boundary #593

Description

@Chucks1093

Summary

The global root error boundary has no unit tests. Tests should confirm the fallback UI renders when a child component throws, the retry button resets the boundary, and the boundary resets automatically on route change.

Scope

  • Render a component that throws inside the root error boundary
  • Assert the fallback UI is visible and the throwing component is not
  • Click the retry button and assert the boundary resets and the component attempts to remount
  • Simulate a route change and assert the boundary resets without user interaction

Acceptance Criteria

  • Fallback UI renders when child throws
  • Throwing component not visible during fallback
  • Retry button resets the boundary
  • Route change resets the boundary automatically

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions