From 363411b82d7b08e80e71621d02eb35c3ae961fa7 Mon Sep 17 00:00:00 2001 From: Jahziel Villasana-Espinoza Date: Wed, 16 Jul 2025 14:43:45 -0400 Subject: [PATCH] Don't show copy if host is Android (#30951) > Closes #30905 # Checklist for submitter If some of the following don't apply, delete the relevant line. - [x] Added/updated automated tests - [x] Manual QA for all new/changed functionality - [x] For unreleased bug fixes in a release candidate, confirmed that the fix is not expected to adversely impact load test results or alerted the release DRI if additional load testing is needed. --- frontend/pages/hosts/details/cards/Software/HostSoftware.tsx | 4 +++- .../Software/HostSoftwareTable/HostSoftwareTable.tests.tsx | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/pages/hosts/details/cards/Software/HostSoftware.tsx b/frontend/pages/hosts/details/cards/Software/HostSoftware.tsx index a963cf0a83..b8fcd619d5 100644 --- a/frontend/pages/hosts/details/cards/Software/HostSoftware.tsx +++ b/frontend/pages/hosts/details/cards/Software/HostSoftware.tsx @@ -343,7 +343,9 @@ const HostSoftware = ({ return (
- + {!isAndroid(platform) && ( + + )} {renderHostSoftware()}
); diff --git a/frontend/pages/hosts/details/cards/Software/HostSoftwareTable/HostSoftwareTable.tests.tsx b/frontend/pages/hosts/details/cards/Software/HostSoftwareTable/HostSoftwareTable.tests.tsx index ce8e1fea08..0caf5f22af 100644 --- a/frontend/pages/hosts/details/cards/Software/HostSoftwareTable/HostSoftwareTable.tests.tsx +++ b/frontend/pages/hosts/details/cards/Software/HostSoftwareTable/HostSoftwareTable.tests.tsx @@ -54,6 +54,9 @@ describe("HostSoftwareTable", () => { screen.getByText(/software is not supported for this host/i) ).toBeInTheDocument(); expect(screen.getByText(/let us know/i)).toBeInTheDocument(); + expect( + screen.queryByText(/Software installed on this host/i) + ).not.toBeInTheDocument(); }); it("renders custom filter button when filters are applied", () => {