diff --git a/web/src/components/storage/ConnectedDevicesMenu.test.tsx b/web/src/components/storage/ConnectedDevicesMenu.test.tsx
index 1ef4e52723..2fd520a5ac 100644
--- a/web/src/components/storage/ConnectedDevicesMenu.test.tsx
+++ b/web/src/components/storage/ConnectedDevicesMenu.test.tsx
@@ -26,7 +26,7 @@ import { installerRender, mockNavigateFn } from "~/test-utils";
import ConnectedDevicesMenu from "./ConnectedDevicesMenu";
import { STORAGE as PATHS } from "~/routes/paths";
-const mockUseZFCPSupported = jest.fn();
+/*const mockUseZFCPSupported = jest.fn();
jest.mock("~/queries/storage/zfcp", () => ({
...jest.requireActual("~/queries/storage/zfcp"),
useZFCPSupported: () => mockUseZFCPSupported(),
@@ -37,6 +37,7 @@ jest.mock("~/queries/storage/dasd", () => ({
...jest.requireActual("~/queries/storage/dasd"),
useDASDSupported: () => mockUseDASDSupported(),
}));
+*/
const mockReactivateSystem = jest.fn();
jest.mock("~/api", () => ({
@@ -44,10 +45,12 @@ jest.mock("~/api", () => ({
activateStorageAction: () => mockReactivateSystem(),
}));
+/*
beforeEach(() => {
mockUseZFCPSupported.mockReturnValue(false);
mockUseDASDSupported.mockReturnValue(false);
});
+*/
async function openMenu() {
const { user } = installerRender();
@@ -78,9 +81,11 @@ it("allows users to configure iSCSI", async () => {
});
describe("if zFCP is not supported", () => {
+ /*
beforeEach(() => {
mockUseZFCPSupported.mockReturnValue(false);
});
+ */
it("does not allow users to configure zFCP", async () => {
const { menu } = await openMenu();
@@ -89,10 +94,12 @@ describe("if zFCP is not supported", () => {
});
});
-describe("if zFCP is supported", () => {
+describe.skip("if zFCP is supported", () => {
+ /*
beforeEach(() => {
mockUseZFCPSupported.mockReturnValue(true);
});
+ */
it("allows users to configure zFCP", async () => {
const { user, menu } = await openMenu();
@@ -103,9 +110,11 @@ describe("if zFCP is supported", () => {
});
describe("if DASD is not supported", () => {
+ /*
beforeEach(() => {
mockUseDASDSupported.mockReturnValue(false);
});
+ */
it("does not allow users to configure DASD", async () => {
const { menu } = await openMenu();
@@ -114,10 +123,12 @@ describe("if DASD is not supported", () => {
});
});
-describe("if DASD is supported", () => {
+describe.skip("if DASD is supported", () => {
+ /*
beforeEach(() => {
mockUseDASDSupported.mockReturnValue(true);
});
+ */
it("allows users to configure DASD", async () => {
const { user, menu } = await openMenu();
diff --git a/web/src/components/storage/ConnectedDevicesMenu.tsx b/web/src/components/storage/ConnectedDevicesMenu.tsx
index f9ff7a8459..197790c108 100644
--- a/web/src/components/storage/ConnectedDevicesMenu.tsx
+++ b/web/src/components/storage/ConnectedDevicesMenu.tsx
@@ -25,16 +25,14 @@ import { useNavigate } from "react-router";
import { _ } from "~/i18n";
import { activateStorageAction } from "~/api";
import { STORAGE as PATHS } from "~/routes/paths";
-import { useZFCPSupported } from "~/queries/storage/zfcp";
-import { useDASDSupported } from "~/queries/storage/dasd";
import { Icon } from "~/components/layout";
import MenuButton from "../core/MenuButton";
import spacingStyles from "@patternfly/react-styles/css/utilities/Spacing/spacing";
export default function ConnectedDevicesMenu() {
const navigate = useNavigate();
- const isZFCPSupported = useZFCPSupported();
- const isDASDSupported = useDASDSupported();
+ const isZFCPSupported = false;
+ const isDASDSupported = false;
return (