-
Task
-
Resolution: Unresolved
-
Major
-
None
-
None
-
False
-
-
False
-
-
Description
Migrate Notifications plugin E2E tests to workspaces/backstage/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
Notifications Plugin Enabled: Backend and frontend notifications plugins
API Token: Static token for notifications API access
- apiToken: "test-token" configured in backend auth
Based on RHDH core config (.ibm/pipelines/resources/config_map/app-config-rhdh.yaml):
backend:
auth:
externalAccess:
‑ type: static
options:
token: test‑token
subject: test‑subject
Source Files (RHDH Core)
Plugin Packages
| Package | Type |
|---|---|
| backstage-plugin-notifications | Frontend |
| backstage-plugin-notifications-backend-dynamic | Backend |
| backstage-plugin-signals | Frontend |
| backstage-plugin-signals-backend-dynamic | Backend |
| backstage-plugin-notifications-backend-module-email-dynamic | Backend (optional) |
Acceptance Criteria
1. Create Workspace Structure
- [ ] Reuse workspaces/backstage/e2e-tests/
2. Create RHDH Configuration (tests/config/)
- [ ] Add notifications and signals plugins to dynamic-plugins.yaml
- [ ] Configure static token for API access
3. Migrate Test Files
- [ ] Create tests/specs/filter-notifications-by-severity.spec.ts
- [ ] Create tests/specs/mark-notifications.spec.ts
- [ ] Create tests/pages/notifications.page.ts
- [ ] Create tests/support/api/notifications.ts
4. Verify All Tests Pass
- [ ] All 7 test cases pass
Test Cases (7 total)
- Filter notifications by severity - Critical
- Filter notifications by severity - High
- Filter notifications by severity - Normal
- Filter notifications by severity - Low
- Mark notification as read
- Mark notification as unread
- Mark notification as saved
Reference
- Template: workspaces/tech-radar/e2e-tests