2023-01-04 18:39:39 +00:00
|
|
|
import React from "react";
|
|
|
|
import { screen } from "@testing-library/react";
|
|
|
|
|
|
|
|
import { createCustomRenderer } from "test/test-utils";
|
|
|
|
import IntegrationsPage from "./IntegrationsPage";
|
|
|
|
|
|
|
|
describe("Integrations Page", () => {
|
|
|
|
it("renders the MDM section in the side nav if MDM feature is enabled", () => {
|
|
|
|
const render = createCustomRenderer({
|
|
|
|
withBackendMock: true,
|
|
|
|
context: {
|
2023-02-01 17:47:52 +00:00
|
|
|
app: { isMdmFeatureFlagEnabled: true },
|
2023-01-04 18:39:39 +00:00
|
|
|
},
|
|
|
|
});
|
|
|
|
|
|
|
|
render(<IntegrationsPage params={{ section: "mdm" }} />);
|
|
|
|
|
|
|
|
expect(
|
|
|
|
screen.getByText("Mobile Device Management (MDM)")
|
|
|
|
).toBeInTheDocument();
|
|
|
|
});
|
|
|
|
});
|