diff --git a/assets/js/components/HostDetails/HostDetails.jsx b/assets/js/components/HostDetails/HostDetails.jsx index 03b28becc2..f5c8257825 100644 --- a/assets/js/components/HostDetails/HostDetails.jsx +++ b/assets/js/components/HostDetails/HostDetails.jsx @@ -1,14 +1,18 @@ import React, { useState } from 'react'; import { get } from 'lodash'; +import { EOS_CLEAR_ALL, EOS_PLAY_CIRCLE, EOS_SETTINGS } from 'eos-icons-react'; import { agentVersionWarning } from '@lib/agent'; +import Button from '@components/Button'; import Table from '@components/Table'; import PageHeader from '@components/PageHeader'; import BackButton from '@components/BackButton'; import WarningBanner from '@components/Banners/WarningBanner'; import CleanUpButton from '@components/CleanUpButton'; import DeregistrationModal from '@components/DeregistrationModal'; +import { canStartExecution } from '@components/ChecksSelection'; +import Tooltip from '@components/Tooltip'; import SuseLogo from '@static/suse_logo.svg'; import CheckResultsOverview from '@components/CheckResultsOverview'; @@ -37,11 +41,14 @@ function HostDetails({ provider, providerData, sapInstances, + savingChecks, saptuneStatus = {}, + selectedChecks = [], slesSubscriptions, catalog, lastExecution, cleanUpHost, + requestHostChecksExecution, navigate, }) { const [cleanUpModalOpen, setCleanUpModalOpen] = useState(false); @@ -103,6 +110,47 @@ function HostDetails({ }} /> )} + + + + + + +
diff --git a/assets/js/components/HostDetails/HostDetails.test.jsx b/assets/js/components/HostDetails/HostDetails.test.jsx index 1e5afaf6ad..86cc4aacf8 100644 --- a/assets/js/components/HostDetails/HostDetails.test.jsx +++ b/assets/js/components/HostDetails/HostDetails.test.jsx @@ -13,7 +13,7 @@ import HostDetails from './HostDetails'; describe('HostDetails component', () => { describe('Checks execution', () => { - it.skip('should show the Checks related action buttons', () => { + it('should show the Checks related action buttons', () => { renderWithRouter(); expect( @@ -27,7 +27,7 @@ describe('HostDetails component', () => { ).toBeVisible(); }); - it.skip('should disable start execution button when checks are not selected', async () => { + it('should disable start execution button when checks are not selected', async () => { const user = userEvent.setup(); renderWithRouter( @@ -41,7 +41,7 @@ describe('HostDetails component', () => { expect(screen.getByText('Select some Checks first!')).toBeInTheDocument(); }); - it.skip('should enable start execution button when checks are selected', async () => { + it('should enable start execution button when checks are selected', async () => { const user = userEvent.setup(); const selectedChecks = [faker.animal.bear(), faker.animal.bear()];