From 8daceabd26225488c6ff0d84223dfd198d56dded Mon Sep 17 00:00:00 2001 From: mabashian Date: Mon, 28 Oct 2019 17:38:14 -0400 Subject: [PATCH] Removes close button from footer of host details modal --- awx/ui_next/src/screens/Job/JobOutput/HostEventModal.jsx | 6 ------ .../src/screens/Job/JobOutput/HostEventModal.test.jsx | 3 +-- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/awx/ui_next/src/screens/Job/JobOutput/HostEventModal.jsx b/awx/ui_next/src/screens/Job/JobOutput/HostEventModal.jsx index 45f6074d7d..f0bf69fe55 100644 --- a/awx/ui_next/src/screens/Job/JobOutput/HostEventModal.jsx +++ b/awx/ui_next/src/screens/Job/JobOutput/HostEventModal.jsx @@ -1,6 +1,5 @@ import React, { useEffect, useState } from 'react'; import { - Button, Modal as PFModal, Tab, Tabs as PFTabs, @@ -141,11 +140,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(); });