Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Fix failing AddSystemsToGroupModal test #1818

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test: Fix failing AddSystemsToGroupModal test
gkarat committed Mar 30, 2023
commit d3181ba5b5923847c7c02b5e5af9176fe54ed406
1 change: 1 addition & 0 deletions src/components/GroupSystems/GroupSystems.cy.js
Original file line number Diff line number Diff line change
@@ -304,6 +304,7 @@ describe('actions', () => {
beforeEach(() => {
cy.intercept('*', { statusCode: 200 });
hostsInterceptors.successful();
featureFlagsInterceptors.successful(); // make Groups col available

mountTable();

Original file line number Diff line number Diff line change
@@ -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 = ({