Skip to content

Commit

Permalink
fix(RHINENG-7744): fix status column default value in Immutable tabs (#…
Browse files Browse the repository at this point in the history
…2142)

* fix(RHINENG-7744): fix status column default value in Immutable tabs

* chore(ImmutableDevice): fix tests of status column
  • Loading branch information
mkholjuraev authored Feb 7, 2024
1 parent 511d0a5 commit 3509818
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/ImmutableDevices/ImmutableDevices.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ describe('ImmutableDevices', () => {
});

describe('Status column', () => {
it('Should populate Status column with Up to date by default', () => {
it('Should populate Status column with Unknown by default', () => {
defaultProps.getEntities = getEntities((row) => row);

mountWithProps(defaultProps);

cy.get('td[data-label="Status"] > #status > :nth-child(2) > p').contains(
'Up to date'
'Unknown'
);
});

Expand Down
2 changes: 1 addition & 1 deletion src/components/ImmutableDevices/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@ export const getDeviceStatus = (
if (isUpdateAvailable) {
return 'updateAvailable';
} else {
return 'upToDate';
return 'default';
}
};

0 comments on commit 3509818

Please sign in to comment.