Skip to content

Commit

Permalink
test: Fix failing AddSystemsToGroupModal test (#1818)
Browse files Browse the repository at this point in the history
  • Loading branch information
gkarat authored Mar 30, 2023
1 parent c9a1d4e commit 6c651a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/GroupSystems/GroupSystems.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@ describe('actions', () => {
beforeEach(() => {
cy.intercept('*', { statusCode: 200 });
hostsInterceptors.successful();
featureFlagsInterceptors.successful(); // make Groups col available

mountTable();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ export const prepareColumns = (initialColumns) => {
'update_method',
'groups',
'updated'
].map((colKey) => columns.find(({ key }) => key === colKey));
].map((colKey) => columns.find(({ key }) => key === colKey))
.filter(Boolean); // eliminate possible undefined's
};

const AddSystemsToGroupModal = ({
Expand Down

0 comments on commit 6c651a5

Please sign in to comment.