Uploaded image for project: 'Red Hat Internal Developer Platform'
  1. Red Hat Internal Developer Platform
  2. RHIDP-11386

Migrate Notifications plugin E2E tests to Overlay (backstage workspace)

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Major Major
    • 1.10.0
    • None
    • Notifications, Overlay
    • None

      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)

      1. Filter notifications by severity - Critical
      2. Filter notifications by severity - High
      3. Filter notifications by severity - Normal
      4. Filter notifications by severity - Low
      5. Mark notification as read
      6. Mark notification as unread
      7. Mark notification as saved

      Reference

              Unassigned Unassigned
              skhileri Subhash Khileri
              RHDH Plugins
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: