-
Task
-
Resolution: Unresolved
-
Major
-
None
-
None
-
False
-
-
False
-
-
Description
Migrate Scorecard E2E tests to workspaces/scorecard/e2e-tests/.
NOTE
This task is based on the existing RHDH core test case and may have missed some details. Please review the original test files in RHDH core before implementation.
Setup Prerequisites
GitHub Integration: For GitHub scorecard module
- GitHub App credentials (same as other GitHub plugins)
Jira Integration: For Jira scorecard module (if used)
- Jira API credentials
RBAC Enabled: Scorecard requires permission framework
- permission.enabled: true
- pluginsWithPermission includes scorecard
Source Files (RHDH Core)
| File | Path |
|---|---|
| Test spec | e2e-tests/playwright/e2e/plugins/scorecard/scorecard.spec.ts |
Plugin Packages
| Package | Type |
|---|---|
| red-hat-developer-hub-backstage-plugin-scorecard | Frontend |
| red-hat-developer-hub-backstage-plugin-scorecard-backend | Backend |
| red-hat-developer-hub-backstage-plugin-scorecard-backend-module-github | Backend Module |
| red-hat-developer-hub-backstage-plugin-scorecard-backend-module-jira | Backend Module |
Acceptance Criteria
1. Create Workspace Structure
- [ ] Create workspaces/scorecard/e2e-tests/
- [ ] Copy standard config files from tech-radar reference
- [ ] Update package.json name and playwright.config.ts project name
2. Create RHDH Configuration (tests/config/)
- [ ] Create dynamic-plugins.yaml with all 4 scorecard packages
3. Migrate Test Files
- [ ] Create tests/specs/scorecard.spec.ts
4. Verify All Tests Pass
- [ ] All 4 test cases pass
Test Cases (4 total)
1-4. Scorecard plugin tests
Reference
- Template: workspaces/tech-radar/e2e-tests