From 5f12698c792f7b11b799101e15d317c296907c4c Mon Sep 17 00:00:00 2001 From: johannetronstad Date: Mon, 21 Aug 2023 14:43:35 +0200 Subject: [PATCH] fix test setup --- src/index.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index 51b14a89c..85bb4b652 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -32,6 +32,9 @@ const renderApp = () => { }; if (USE_MOCK) { + const webComponentTag = document.createElement("dab-aktivitetsplan") + webComponentTag.setAttribute("data-fnr", mockfnr) + document.getElementById("root")!!.appendChild(webComponentTag) import('./mocks') .then(({ default: startWorker }) => startWorker()) .then(() => {