-
Story
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
None
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