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 <fatihcamgoz@hotmail.com.tr>
This commit is contained in:
fcamgz
2025-10-13 17:06:56 -04:00
parent 34aebcc520
commit d7c7c7e071
@@ -151,22 +151,6 @@ describe('SearchModal', () => {
expect(toggleModal).toHaveBeenCalledTimes(1);
});
it('should render SearchModal hiding its content', async () => {
const { getByTestId } = await renderInTestApp(
<ApiProvider apis={apiRegistry}>
<SearchModal open hidden toggleModal={toggleModal} />
</ApiProvider>,
{
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(
<ApiProvider apis={apiRegistry}>