Skip to content

Commit

Permalink
fix: Update no groups empty state texts
Browse files Browse the repository at this point in the history
  • Loading branch information
gkarat committed Aug 15, 2023
1 parent bb24cbe commit 5e27941
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/InventoryGroups/InventoryGroups.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('groups table page', () => {
cy.wait('@getGroups');

cy.get('#groups-table').should('not.exist');
cy.get('.pf-c-empty-state').find('h4').contains('Create a system group');
cy.get('.pf-c-empty-state').find('h4').contains('No inventory groups');
});

it('renders error message when request fails', () => {
Expand Down
4 changes: 2 additions & 2 deletions src/components/InventoryGroups/NoGroupsEmptyState.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ const NoGroupsEmptyState = ({ reloadData }) => {
color={globalPaletteBlack600.value}
/>
<Title headingLevel="h4" size="lg">
Create a system group
No inventory groups
</Title>
<EmptyStateBody>
Manage device operations efficiently by creating system groups.
Manage device operations efficiently by creating inventory groups.
</EmptyStateBody>
{canModifyGroups ? (
<Button variant="primary" onClick={() => setCreateGroupModalOpen(true)}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe('NoGroupsEmptyState', () => {
</MemoryRouter>
);
// toHaveTextContent is a part of @testing-library/jest-dom
expect(getByRole('heading')).toHaveTextContent('Create a system group');
expect(getByRole('heading')).toHaveTextContent('No inventory groups');
expect(container.querySelector('.pf-c-empty-state__icon')).not.toBe(null);
});

Expand Down

0 comments on commit 5e27941

Please sign in to comment.