Skip to content

Fix Archon Unit Test Bugs#12

Merged
rnarciso merged 1 commit intomainfrom
fix-unit-test-bugs
Aug 18, 2025
Merged

Fix Archon Unit Test Bugs#12
rnarciso merged 1 commit intomainfrom
fix-unit-test-bugs

Conversation

@google-labs-jules
Copy link
Copy Markdown

This pull request fixes several bugs in the Archon Unit Tests UI.

Changes:

  • Dashboard UI Crash: Added a null check in TestResultDashboard.tsx to prevent a crash when test results are not available.
  • React UI Tests: Modified vite.config.ts to use a non-interactive reporter for the React UI tests, ensuring they run correctly and stream their output. Also fixed the regex for stripping ANSI color codes.
  • Dashboard Layout: Adjusted the CSS grid classes in TestResultDashboard.tsx to stack the "Test Summary" and "Coverage Analysis" boxes vertically on all screen sizes.

This commit addresses three issues:
1. A UI crash when clicking the "Dashboard" button without any test results. This was fixed by adding a null check for the test results summary.
2. The React UI tests not running. This was fixed by changing the test command in the vite config to use a non-interactive reporter and fixing the ANSI escape code stripping.
3. A layout issue in the dashboard where the "Test Summary" and "Coverage Analysis" boxes were displayed side-by-side. This was fixed by changing the grid layout to stack them vertically.
@rnarciso rnarciso marked this pull request as ready for review August 18, 2025 09:48
@rnarciso rnarciso merged commit ab2ddb4 into main Aug 18, 2025
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.

1 participant