+
{'FPS:'} {Math.round(fpsSamples[fpsSamples.length - 1])}
+
+ {fpsSamples.map((fps, index) => (
+
+ ))}
+
+
+ );
+};
diff --git a/x-pack/solutions/security/packages/kbn-cloud-security-posture/graph/src/components/graph/graph.test.tsx b/x-pack/solutions/security/packages/kbn-cloud-security-posture/graph/src/components/graph/graph.test.tsx
index 18ba84207f962..dcfd7f0f26e25 100644
--- a/x-pack/solutions/security/packages/kbn-cloud-security-posture/graph/src/components/graph/graph.test.tsx
+++ b/x-pack/solutions/security/packages/kbn-cloud-security-posture/graph/src/components/graph/graph.test.tsx
@@ -10,6 +10,11 @@ import React from 'react';
import { Graph, type GraphProps } from './graph';
import { TestProviders } from '../mock/test_providers';
+// Turn off the optimization that hides elements that are not visible in the viewport
+jest.mock('./constants', () => ({
+ ONLY_RENDER_VISIBLE_ELEMENTS: false,
+}));
+
const renderGraphPreview = (props: GraphProps) =>
render(