Skip to content

Fix Archon Unit Test Bugs#13

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

Fix Archon Unit Test Bugs#13
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 robust null checks, optional chaining, and default values in TestResultDashboard.tsx to prevent a crash when test results are not available or are malformed. This addresses the TypeError: undefined is not an object (evaluating 'results.summary.failed') error.
  • React UI Tests: Modified vite.config.ts to use the dot reporter for the React UI tests, ensuring they run correctly and stream their output.
  • 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 robust null checks, optional chaining, and default values for the test results summary and suites.
2. The React UI tests not running. This was fixed by changing the test command in the vite config to use the `dot` reporter, which is more reliable for streaming output.
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 10:03
@rnarciso rnarciso merged commit 8efca65 into main Aug 18, 2025
@rnarciso rnarciso deleted the fix-unit-test-bugs branch August 18, 2025 10:03
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