From 48fcd735a96427fcf6df8904925639029e770e3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Rialland?= Date: Thu, 2 Mar 2023 15:33:39 +0100 Subject: [PATCH] Add private tag into integration-test list --- site/source/pages/Dev/IntegrationTest.tsx | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/site/source/pages/Dev/IntegrationTest.tsx b/site/source/pages/Dev/IntegrationTest.tsx index 43e6a79ed..12ae5d2e3 100644 --- a/site/source/pages/Dev/IntegrationTest.tsx +++ b/site/source/pages/Dev/IntegrationTest.tsx @@ -11,12 +11,19 @@ export default function IntegrationTest() { const integrableModuleNames = useMemo( () => Object.values(simulators) - .map((s) => 'iframePath' in s && s.iframePath) + .map((s) => + 'iframePath' in s + ? { + iframePath: s.iframePath, + private: 'private' in s ? s.private : false, + } + : false + ) .filter(((el) => Boolean(el)) as (x: T | false) => x is T), [simulators] ) const [currentModule, setCurrentModule] = useState( - integrableModuleNames[0] + integrableModuleNames[0]?.iframePath ) const [color, setColor] = useState('#005aa1') const [version, setVersion] = useState(0) @@ -38,8 +45,11 @@ export default function IntegrationTest() { <>

Quel module ?