diff --git a/src/components/GroupSystems/GroupSystems.cy.js b/src/components/GroupSystems/GroupSystems.cy.js index 40cb696a7..a9286371a 100644 --- a/src/components/GroupSystems/GroupSystems.cy.js +++ b/src/components/GroupSystems/GroupSystems.cy.js @@ -7,6 +7,7 @@ import { checkTableHeaders, CHIP, CHIP_GROUP, + DROPDOWN_ITEM, DROPDOWN_TOGGLE, hasChip, MODAL, @@ -252,6 +253,10 @@ describe('filtering', () => { cy.wait('@getHosts'); // TODO: reset filters shouldn't trigger this second extra call }); + it('should not contain group filter', () => { + cy.get('button[data-ouia-component-id="ConditionalFilter"]').click(); + cy.get(DROPDOWN_ITEM).should('not.contain', 'Group'); + }); // TODO: add more filter cases }); diff --git a/src/components/GroupSystems/GroupSystems.js b/src/components/GroupSystems/GroupSystems.js index e59737e32..16993418c 100644 --- a/src/components/GroupSystems/GroupSystems.js +++ b/src/components/GroupSystems/GroupSystems.js @@ -107,6 +107,7 @@ const GroupSystems = ({ groupName, groupId }) => { { !isModalOpen && await defaultGetEntities(