diff --git a/assets/js/components/SaptuneDetails/SaptuneDetails.test.jsx b/assets/js/components/SaptuneDetails/SaptuneDetails.test.jsx index 5edadaf285..11a51562a0 100644 --- a/assets/js/components/SaptuneDetails/SaptuneDetails.test.jsx +++ b/assets/js/components/SaptuneDetails/SaptuneDetails.test.jsx @@ -102,4 +102,36 @@ describe('SaptuneDetails', () => { staging.solutions_ids ); }); + + it('should display dashes for enabled and applied solutions when solution is null', () => { + const solution = null; + + const { + configured_version: configuredVersion, + package_version: packageVersion, + services, + staging, + tuning_state: tuningState, + } = saptuneStatusFactory.build(); + const { hostname, id: hostID } = hostFactory.build(); + renderWithRouter( + + ); + expect(screen.getByText('Enabled Solution').nextSibling).toHaveTextContent( + `-` + ); + expect(screen.getByText('Applied Solution').nextSibling).toHaveTextContent( + `-` + ); + }); });