Skip to content

chore(e2e): add comprehensive e2e tests for aggregated scorecards on the Home page - #2144

Merged
jrichter1 merged 4 commits into
redhat-developer:mainfrom
HusneShabbir:e2e-aggregated-sc-tests
Jan 27, 2026
Merged

chore(e2e): add comprehensive e2e tests for aggregated scorecards on the Home page#2144
jrichter1 merged 4 commits into
redhat-developer:mainfrom
HusneShabbir:e2e-aggregated-sc-tests

Conversation

@HusneShabbir

@HusneShabbir HusneShabbir commented Jan 24, 2026

Copy link
Copy Markdown
Member

Summary

Add comprehensive e2e tests for scorecard plugin

Fixes: RHIDP-9677

Test Structure

Scorecard Plugin Tests
├── Entity Scorecards
│   ├── Verify permission required state
│   ├── Verify metrics display correctly
│   ├── Verify empty state when no metrics available
│   ├── Verify error state for unavailable metric data
│   └── Verify error state for invalid threshold configuration
│
└── Aggregated Scorecards
    ├── Verify missing permission state
    ├── Manage scorecards on Home page
    ├── Verify entity counts with mocked API response
    ├── Verify cards hidden when API returns empty response
    └── Verify threshold tooltips

New Aggregated Scorecard Tests

  • Missing permission state: Validates scorecards show "Missing permission" message with 0 entities when user lacks permissions
  • Manage scorecards: Tests adding/removing GitHub and Jira scorecard cards on Home page
  • Entity counts: Mocks API with 15 GitHub and 10 Jira entities, validates pie chart threshold states using aria snapshots
  • Empty response handling: Ensures scorecard cards are hidden when API returns []
  • Threshold tooltips: Hovers on Success/Warning/Error states, verifies entity count and percentage in tooltips

Related

  • RHDHBUGS-2546 - Missing i18n translations for entity count in ja/it locales

@rhdh-gh-app

rhdh-gh-app Bot commented Jan 24, 2026

Copy link
Copy Markdown

Changed Packages

Package Name Package Path Changeset Bump Current Version
app workspaces/scorecard/packages/app none v0.0.0

Comment thread workspaces/scorecard/playwright.config.ts Outdated
@HusneShabbir
HusneShabbir force-pushed the e2e-aggregated-sc-tests branch from 7e64d9d to f6104e2 Compare January 26, 2026 17:05
@HusneShabbir
HusneShabbir force-pushed the e2e-aggregated-sc-tests branch from df7dc49 to bd1ad35 Compare January 27, 2026 13:36
@sonarqubecloud

Copy link
Copy Markdown

@jrichter1
jrichter1 merged commit 6686aeb into redhat-developer:main Jan 27, 2026
9 checks passed
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.

2 participants