diff --git a/airflow-core/src/airflow/ui/src/layouts/Details/Graph/Graph.test.tsx b/airflow-core/src/airflow/ui/src/layouts/Details/Graph/Graph.test.tsx index 8fa32dcc2c835..da463360e9683 100644 --- a/airflow-core/src/airflow/ui/src/layouts/Details/Graph/Graph.test.tsx +++ b/airflow-core/src/airflow/ui/src/layouts/Details/Graph/Graph.test.tsx @@ -25,6 +25,10 @@ import { Wrapper } from "src/utils/Wrapper"; import { Graph } from "./Graph"; +// testsSetup.ts globally mocks Graph to null so full-page tests don't need to +// stub ELK layout data. Unmock it here so we test the real component. +vi.unmock("src/layouts/Details/Graph/Graph"); + let mockParams: Record = { dagId: "test_dag" }; vi.mock("react-router-dom", async () => {