From 2e34ba3cef03666642a79f244d59e5ff618725a8 Mon Sep 17 00:00:00 2001 From: Muslimjon Date: Thu, 1 Feb 2024 15:09:15 +0100 Subject: [PATCH 1/2] fix(RHINENG-7744): fix status column default value in Immutable tabs --- src/components/ImmutableDevices/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/ImmutableDevices/helpers.js b/src/components/ImmutableDevices/helpers.js index c41a4510a..c3c314937 100644 --- a/src/components/ImmutableDevices/helpers.js +++ b/src/components/ImmutableDevices/helpers.js @@ -61,6 +61,6 @@ export const getDeviceStatus = ( if (isUpdateAvailable) { return 'updateAvailable'; } else { - return 'upToDate'; + return 'default'; } }; From 91cf1e7dea8c0a82e35085897df48f70e25fc1b3 Mon Sep 17 00:00:00 2001 From: Muslimjon Date: Tue, 6 Feb 2024 10:42:22 +0100 Subject: [PATCH 2/2] chore(ImmutableDevice): fix tests of status column --- src/components/ImmutableDevices/ImmutableDevices.cy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ImmutableDevices/ImmutableDevices.cy.js b/src/components/ImmutableDevices/ImmutableDevices.cy.js index 8f3ecb1bf..785858117 100644 --- a/src/components/ImmutableDevices/ImmutableDevices.cy.js +++ b/src/components/ImmutableDevices/ImmutableDevices.cy.js @@ -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' ); });