@@ -121,18 +121,17 @@ Feature: SBOM Groups - Manage SBOM groups
121121 And A group "<groupName>" exists
122122 When User applies filter "Filter" with value "<groupName>"
123123 Then The SBOM count is not displayed for group "<groupName>"
124- When User adds SBOMs "<sbom1>" and "<sbom2>" to group "<groupName>"
124+ #When User adds SBOMs "<sbom1>" and "<sbom2>" to group "<groupName>"
125+ When User adds multiple SBOMs to the group "<groupName>"
125126 Then Success notification "2" is displayed
126127 When User navigates to SBOM Groups page
127128 And User applies filter "Filter" with value "<groupName>"
128129 Then The SBOM count for group "<groupName>" shows "2 SBOMs"
129130 When User clicks on group "<groupName>"
130- Then The SBOM "<sbom1>" is visible in the group member list
131- And The SBOM "<sbom2>" is visible in the group member list
132-
131+ Then The Selected SBOMs are visible in the group member list
133132 Examples :
134- | groupName | sbom1 | sbom2 |
135- | Multi SBOM Group | liboqs | claude |
133+ | groupName |
134+ | Multi SBOM Group |
136135
137136 # Product label filtering
138137 Scenario : Product label badge appears for product groups
@@ -160,6 +159,30 @@ Feature: SBOM Groups - Manage SBOM groups
160159 When User collapses the tree node for "Tree Parent"
161160 Then The child group "Tree Child" is not visible
162161
162+ # ─────────────────────────────────────────────────────────────────
163+ # Filter auto-expands parent when child matches
164+ # ─────────────────────────────────────────────────────────────────
165+
166+ Scenario : Filter matching child auto-expands parent to show matching child
167+ Given User navigates to SBOM Groups page
168+ And A parent group "AutoExpand Parent" with child group "AutoExpand Child" exists
169+ When User applies filter "Filter" with value "AutoExpand Child"
170+ Then The SBOM Groups table shows filtered results containing "AutoExpand Parent"
171+ And The child group "AutoExpand Child" is visible under "AutoExpand Parent"
172+
173+ # ─────────────────────────────────────────────────────────────────
174+ # Filter matching only parent — children not visible after expand
175+ # Bug: TC-5060 — filtered tree shows non-matching children when parent is expanded
176+ # ─────────────────────────────────────────────────────────────────
177+
178+ # Scenario: Filter matching only parent shows no children when expanded
179+ # Given User navigates to SBOM Groups page
180+ # And A parent group "OnlyParent Match" with child group "Hidden Offspring" exists
181+ # When User applies filter "Filter" with value "OnlyParent Match"
182+ # Then The SBOM Groups table shows filtered results containing "OnlyParent Match"
183+ # When User expands the tree node for "OnlyParent Match"
184+ # Then The child group "Hidden Offspring" is not visible
185+
163186 # Invalid group ID handling
164187 Scenario : Navigate to invalid group ID shows error
165188 When User navigates to group details with invalid ID
0 commit comments