diff --git a/src/app/machines/views/MachineDetails/MachineHeader/MachineHeader.test.tsx b/src/app/machines/views/MachineDetails/MachineHeader/MachineHeader.test.tsx
index d5c5d232e1..0c2707696a 100644
--- a/src/app/machines/views/MachineDetails/MachineHeader/MachineHeader.test.tsx
+++ b/src/app/machines/views/MachineDetails/MachineHeader/MachineHeader.test.tsx
@@ -6,7 +6,7 @@ import MachineHeader from "./MachineHeader";
import { actions as machineActions } from "app/store/machine";
import type { RootState } from "app/store/root/types";
import { PowerState } from "app/store/types/enum";
-import { NodeActions, NodeStatusCode } from "app/store/types/node";
+import { NodeActions, NodeStatus, NodeStatusCode } from "app/store/types/node";
import {
generalState as generalStateFactory,
machine as machineFactory,
@@ -84,15 +84,29 @@ describe("MachineHeader", () => {
);
});
- it("displays power status", () => {
- state.machine.items[0].power_state = PowerState.ON;
+ it("displays an icon when locked", () => {
+ state.machine.items[0].locked = true;
+
+ renderWithBrowserRouter(
+