diff --git a/awx/ui_next/src/screens/Job/JobOutput/HostEventModal.jsx b/awx/ui_next/src/screens/Job/JobOutput/HostEventModal.jsx index 45f6074d7d..202bc2e53c 100644 --- a/awx/ui_next/src/screens/Job/JobOutput/HostEventModal.jsx +++ b/awx/ui_next/src/screens/Job/JobOutput/HostEventModal.jsx @@ -1,10 +1,5 @@ import React, { useEffect, useState } from 'react'; -import { - Button, - Modal as PFModal, - Tab, - Tabs as PFTabs, -} from '@patternfly/react-core'; +import { Modal as PFModal, Tab, Tabs as PFTabs } from '@patternfly/react-core'; import CodeMirrorInput from '@components/CodeMirrorInput'; import ContentEmpty from '@components/ContentEmpty'; import PropTypes from 'prop-types'; @@ -141,11 +136,6 @@ function HostEventModal({ onClose, hostEvent = {}, isOpen = false, i18n }) { isOpen={isOpen} onClose={onClose} title={i18n._(t`Host Details`)} - actions={[ - , - ]} > { const wrapper = mountWithContexts( ); - const closeButton = wrapper.find('ModalBoxFooter Button'); - closeButton.simulate('click'); + wrapper.find('button[aria-label="Close"]').simulate('click'); expect(onClose).toBeCalled(); });