diff --git a/frontend/components/ActivityDetails/InstallDetails/AppInstallDetails/AppInstallDetails.tests.tsx b/frontend/components/ActivityDetails/InstallDetails/AppInstallDetails/AppInstallDetails.tests.tsx index 34706bd063..ef387135fe 100644 --- a/frontend/components/ActivityDetails/InstallDetails/AppInstallDetails/AppInstallDetails.tests.tsx +++ b/frontend/components/ActivityDetails/InstallDetails/AppInstallDetails/AppInstallDetails.tests.tsx @@ -57,6 +57,23 @@ describe("getStatusMessage helper function", () => { ).toBeInTheDocument(); }); + it("shows failed verification message", () => { + render( + getStatusMessage({ + displayStatus: "failed_install", + isStatusNotNow: false, + isStatusAcknowledged: true, + software_title: "Logic Pro", + host_display_name: "Marko's MacBook Pro", + }) + ); + expect( + screen.getByText( + /but the installation has not been verified. Please re-attempt this installation/i + ) + ).toBeInTheDocument(); + }); + it("shows default message for installed status", () => { render( getStatusMessage({ diff --git a/frontend/components/ActivityDetails/InstallDetails/AppInstallDetails/AppInstallDetails.tsx b/frontend/components/ActivityDetails/InstallDetails/AppInstallDetails/AppInstallDetails.tsx index 567845981d..c3b7498950 100644 --- a/frontend/components/ActivityDetails/InstallDetails/AppInstallDetails/AppInstallDetails.tsx +++ b/frontend/components/ActivityDetails/InstallDetails/AppInstallDetails/AppInstallDetails.tsx @@ -67,7 +67,18 @@ export const getStatusMessage = ({ ); } - // VPP failed state + // Verification failed (timeout) + if (displayStatus === "failed_install" && isStatusAcknowledged) { + return ( + <> + The MDM command (request) to install {software_title} on{" "} + {formattedHost} was acknowledged but the installation has not been + verified. Please re-attempt this installation. + + ); + } + + // Install command failed if (displayStatus === "failed_install") { return ( <>