test(maas-portal): add Cypress coverage #10355
All Vouch review confidence checks passed
Residual risk 0.26 = Change Risk (0.48) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.48 · 541 lines diff across 6 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.377
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #10355"
general
weight: 0.35
lucferbux
Problem
The standalone MaaS Portal lacks browser coverage for its assembled UI. Module tests do not exercise portal-prefixed navigation, the portal shell, or how MaaS, GenAI, and observability features behave together.
Solution
Cypress-Mock-Testsmatrix. Thedashboard-shardsrunner uses shared builds and selected dashboard specs;standalone-appruns the application's own build, server, and Cypress suite. Select portal tests from transitive workspace dependencies and build/test inputs, with conservative execution when impact cannot be determined. Reuse the existing finalTestscheck; no dedicated portal job or gate is required.cypress-mockCodecov flag only when the complete dashboard matrix and all registered application suites run; other runs use carryforward coverage. Normal production builds remain uninstrumented.The MaaS Portal suite covers the assembled application’s navigation and feature flows. The Grid tests provide initial coverage of Grid mode by checking project-selector visibility with the flag enabled and disabled, including after reload. This coverage should be improved and expanded to exercise broader Grid-specific workflows.
Evidence
Validation from the repository root:
Browser tests use mocked service responses; they do not verify deployed authentication, production proxy routing, persistent writes, real inference, or live metrics. This PR adds test infrastructure and does not change the production UI.
<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->
Summary by CodeRabbit
Testing & Quality
Added automated MaaS Portal checks for navigation, observability, playground, subscriptions, API keys, governance, and Grid scenarios.
Tests flag unexpected network requests and produce reports and coverage data.
CI Improvements
Cypress mock tests now select affected dashboard shards and standalone applications, skipping unrelated test runs.
Added application-specific test artifacts and combined coverage reporting.
Documentation
Expanded guidance for running and debugging tests, reviewing coverage and artifacts, and understanding CI test selection.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->