diff --git a/frontend/src/__tests__/group-edit-unrepresentable-permissions.test.ts b/frontend/src/__tests__/group-edit-unrepresentable-permissions.test.ts index 4f260daf8..b83d88abe 100644 --- a/frontend/src/__tests__/group-edit-unrepresentable-permissions.test.ts +++ b/frontend/src/__tests__/group-edit-unrepresentable-permissions.test.ts @@ -252,7 +252,8 @@ describe('regression: group edit no longer drops/widens unrepresentable permissi const resourceSelect = document.querySelector('.perm-resource') as HTMLSelectElement; // No breakout payload parsed as a live element anywhere in the modal. - expect(document.querySelectorAll('img, script, svg, iframe, style').length).toBe(0); + // svg.icon is the Remove button's own trash icon (src/icons.ts), not injected markup. + expect(document.querySelectorAll('img, script, svg:not(.icon), iframe, style').length).toBe(0); // No extra