From d7c7c7e0717984dcbdbc6b161d33ceac0cdc289e Mon Sep 17 00:00:00 2001 From: fcamgz Date: Mon, 13 Oct 2025 17:06:56 -0400 Subject: [PATCH] Remove outdated SearchModal test that expected hidden Dialog to remain in DOM Removed test that checked for hidden Dialog still being in DOM. The new behavior properly unmounts the Dialog when hidden, so this test is now covered by the new unmounting tests. Signed-off-by: fcamgz --- .../components/SearchModal/SearchModal.test.tsx | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/plugins/search/src/components/SearchModal/SearchModal.test.tsx b/plugins/search/src/components/SearchModal/SearchModal.test.tsx index 4629017408..6a17276d3b 100644 --- a/plugins/search/src/components/SearchModal/SearchModal.test.tsx +++ b/plugins/search/src/components/SearchModal/SearchModal.test.tsx @@ -151,22 +151,6 @@ describe('SearchModal', () => { expect(toggleModal).toHaveBeenCalledTimes(1); }); - it('should render SearchModal hiding its content', async () => { - const { getByTestId } = await renderInTestApp( - - , - { - mountedRoutes: { - '/search': rootRouteRef, - }, - }, - ); - - expect(getByTestId('search-bar-next')).toBeInTheDocument(); - expect(getByTestId('search-bar-next')).not.toBeVisible(); - }); - it('should focus on its search bar when opened', async () => { await renderInTestApp(