diff --git a/frontend/pages/hosts/details/HostDetailsPage/modals/LockModal/LockModal.tests.tsx b/frontend/pages/hosts/details/HostDetailsPage/modals/LockModal/LockModal.tests.tsx index 5a44e6507f..d8f955e17a 100644 --- a/frontend/pages/hosts/details/HostDetailsPage/modals/LockModal/LockModal.tests.tsx +++ b/frontend/pages/hosts/details/HostDetailsPage/modals/LockModal/LockModal.tests.tsx @@ -49,6 +49,28 @@ describe("LockModal", () => { expect(screen.getByText(/iphone-1/i)).toBeInTheDocument(); }); + it("renders WiFi warning for iOS/iPadOS platforms", () => { + const render = createCustomRenderer({ withBackendMock: true }); + render(); + + expect( + screen.getByText( + /If the host is turned off or restarted while locked, it will disconnect from Wi-Fi, and you won't be able to unlock it remotely/i + ) + ).toBeInTheDocument(); + }); + + it("does not render WiFi warning for macOS platform", () => { + const render = createCustomRenderer({ withBackendMock: true }); + render(); + + expect( + screen.queryByText( + /If the device is turned off or restarted while locked/i + ) + ).not.toBeInTheDocument(); + }); + it("disables Lock button until confirm checkbox is checked", async () => { const render = createCustomRenderer({ withBackendMock: true }); const { user } = render(); diff --git a/frontend/pages/hosts/details/HostDetailsPage/modals/LockModal/LockModal.tsx b/frontend/pages/hosts/details/HostDetailsPage/modals/LockModal/LockModal.tsx index 22f6d4e348..41889d6db9 100644 --- a/frontend/pages/hosts/details/HostDetailsPage/modals/LockModal/LockModal.tsx +++ b/frontend/pages/hosts/details/HostDetailsPage/modals/LockModal/LockModal.tsx @@ -1,6 +1,8 @@ import React, { useContext } from "react"; import { Link } from "react-router"; +import { LEARN_MORE_ABOUT_BASE_LINK } from "utilities/constants"; + import PATHS from "router/paths"; import { NotificationContext } from "context/notification"; import { getErrorReason } from "interfaces/errors"; @@ -91,6 +93,16 @@ const LockModal = ({ .

It can only be unlocked through Fleet.

+

+ If the host is turned off or restarted while locked, it will + disconnect from Wi-Fi, and you won't be able to unlock it + remotely.{" "} + +

); }