From a49f50e15c570efa73644c08b44a56577a455742 Mon Sep 17 00:00:00 2001 From: Evan Date: Thu, 15 Feb 2024 11:32:57 -0500 Subject: [PATCH] add IDs to fix Jest errors --- src/app/AppLayout/AppLayout.tsx | 6 +- src/app/__snapshots__/app.test.tsx.snap | 76 ++++++++++++++----------- 2 files changed, 46 insertions(+), 36 deletions(-) diff --git a/src/app/AppLayout/AppLayout.tsx b/src/app/AppLayout/AppLayout.tsx index 19f9c222..7cd3f299 100644 --- a/src/app/AppLayout/AppLayout.tsx +++ b/src/app/AppLayout/AppLayout.tsx @@ -141,12 +141,14 @@ const AppLayout: React.FunctionComponent = ({ children }) => { {children} document!.querySelector('html')!.classList.toggle('pf-v5-theme-dark')} /> { const html = document.querySelector('html'); diff --git a/src/app/__snapshots__/app.test.tsx.snap b/src/app/__snapshots__/app.test.tsx.snap index 37a9a2d8..8700fe6a 100644 --- a/src/app/__snapshots__/app.test.tsx.snap +++ b/src/app/__snapshots__/app.test.tsx.snap @@ -294,31 +294,35 @@ exports[`App tests should render default App component 1`] = ` data-ouia-component-id="OUIA-Generated-Switch-1" data-ouia-component-type="PF5/Switch" data-ouia-safe="true" - for="pf-1707789380679np9ng40t0v" + for="demo-theme-switcher" > - -