Uploaded image for project: 'Red Hat Advanced Cluster Security'
  1. Red Hat Advanced Cluster Security
  2. ROX-31809

[Testing] Create Cypress tests for Details tab and layer type filtering

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Minor Minor
    • 4.10.0
    • None
    • None
    • None
    • Rox Sprint 4.10H

      Create E2E tests for the Details tab and layer type filtering functionality.

      Test Coverage:

      Details Tab Tests:
      1. View Details tab:

      • Navigate to Image page
      • Click "Details" tab
      • Verify Dockerfile displays with all layers
      • Verify base image layers are highlighted (bolded)
      • Verify layer numbers and instructions render correctly
      • Verify empty state when Dockerfile unavailable

      Layer Type Filter Tests:
      2. Apply layer type filter:

      • Navigate to Image page → Vulnerabilities tab
      • Open compound search filter
      • Select "Image component" → "Layer type" → "Base image"
      • Verify filter chip appears with correct label
      • Verify component table shows only base image components
      • Verify CVE counts update based on filtered components

      3. Switch filter values:

      • Change filter to "Application"
      • Verify results update to show application components only
      • Remove filter
      • Verify all components shown again

      Acceptance Criteria:

      • Details tab renders correctly with Dockerfile
      • Base image layers are visually distinguished
      • Filter applies correctly and updates results
      • Filter chip displays and can be removed
      • Tests work with real backend data

              schaudhr Saif Chaudhry
              schaudhr Saif Chaudhry
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: