[scanner] fix: quality test failures — mission-control launchProgress mock (#20553)#20565
Conversation
…st mocks FlightPlanBlueprint.tsx (line 705) and LaunchSequence.tsx (lines 311, 568) call state.launchProgress.flatMap/length without a null guard. The test mock states were created before launchProgress was added as a required field to MissionControlState, leaving it undefined at runtime. Add launchProgress: [] and the other required fields (phase, title, overlay, deployMode, targetClusters, aiStreaming) to bring the mocks into conformance with the current type definition. Fixes #20553 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: kubestellar-hive[bot] <kubestellar-hive[bot]@users.noreply.github.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
✅ Deploy Preview for kubestellarconsole canceled.
|
|
👋 Hey @kubestellar-hive[bot] — thanks for opening this PR!
This is an automated message. |
✅ Test Coverage CheckAll new source files in this PR have corresponding test files. Checked |
♿ Accessibility Audit (WCAG 2.1 AA)✅ No WCAG 2.1 AA violations detected in audited routes. Powered by axe-core. Target: WCAG 2.1 AA compliance. |
❌ Playwright Tests Failed📊 View Full ReportDownload the To view the report locally: # Download and extract playwright-report.zip
npx playwright show-report path/to/playwright-report |
Signed-off-by: kubestellar-hive[bot] <kubestellar-hive[bot]@users.noreply.github.com>
|
Thank you for your contribution! Your PR has been merged. Check out what's new:
Stay connected: Slack #kubestellar-dev | Multi-Cluster Survey |
|
Post-merge build verification passed ✅ Both Go and frontend builds compiled successfully against merge commit |
Summary
Issues closed
Fixes #20553
Issues NOT in this PR
Test plan
cd web && npx vitest run src/components/mission-control/FlightPlanBlueprint.test.tsxcd web && npx vitest run src/components/mission-control/LaunchSequence.test.tsx🤖 Generated with Claude Code