feat(cost-management): add Playwright E2E test suite - #4276
Conversation
Port the ROS/cost-management E2E suite into workspaces/cost-management with a DCM-style two-tier Playwright config: merge-gate runs app.test.ts locally; full live suite activates when PLAYWRIGHT_URL is set. Signed-off-by: Gary Harden <gharden@redhat.com> Assisted-by: Cursor Grok 4.5 Co-authored-by: Cursor <cursoragent@cursor.com>
Changed Packages
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4276 +/- ##
=======================================
Coverage 59.58% 59.58%
=======================================
Files 2459 2459
Lines 98272 98272
Branches 27448 27438 -10
=======================================
Hits 58559 58559
- Misses 39348 39352 +4
+ Partials 365 361 -4
*This pull request uses carry forward flags. Click here to find out more. Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
SonarCloud S3923: both branches of the PLAYWRIGHT_URL conditional returned the same path, which failed the new-code reliability quality gate. Signed-off-by: Gary Harden <gharden@redhat.com> Assisted-by: Cursor Grok 4.5 Co-authored-by: Cursor <cursoragent@cursor.com>
Status updateGitHub Actions: all required workspace CI checks passed (cost-management node 22/24 + verify). SonarCloud: Quality Gate failed on 1 new bug — identical ternary in CODEOWNERS already auto-requested: @ydayagi @mareklibra @batzionb @PreetiW @asmasarw @Aurobinda55 @r14chandra @kgaikwad Ready for review once Sonar flips green. Test-only PR (same pattern as DCM #3249). |
|
|
All checks are green now (including SonarCloud Quality Gate after the S3923 fix). @PreetiW @Aurobinda55 @mareklibra @kgaikwad @r14chandra @ydayagi @batzionb @asmasarw — ready for CODEOWNER review / merge when you have a chance. Test-only PR. |



Summary
Adds the Cost Management / ROS Playwright E2E suite into
workspaces/cost-management, following the same two-tier pattern as the merged DCM suite (#3249).Merge gate (CI):
app.test.tsruns against the local workspace app shell — validates the app boots and sidebar renders.Downstream E2E (Jenkins): 100+ tests across 11 files, activated by
PLAYWRIGHT_URL. Covers:ros.plugin/ros/<cluster>/ros/<cluster>/<project>) — FLPATH-4207Why a new branch (not the old fork branch)
Previous PRs failed for the wrong shape:
feature/resource-optimization-e2e-testsbranch (~880 commits / old workspace name)This PR is test-only, based on current
main, and lands files under the renamedcost-managementworkspace.Architecture
Run downstream tests with:
cd workspaces/cost-management PLAYWRIGHT_URL=https://backstage-...apps... yarn e2e-test:liveTest plan
yarn playwright test --list→ 1 test (chromium / merge gate) withoutPLAYWRIGHT_URLPLAYWRIGHT_URL=… yarn playwright test --list→ 104 tests in 12 filesyarn playwright testforcost-managementworkspaceflightpath-rosprofiles from fork branchfeature/resource-optimization-e2e-tests→ upstreammain+workspaces/cost-managementNotes
@PreetiW @mareklibra @ydayagi @batzionb @asmasarw @Aurobinda55 @r14chandra @kgaikwadRHDH_PLUGINS_BRANCH/ pathMade with Cursor