aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/helpers/testReactTestingUtils.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/helpers/testReactTestingUtils.tsx')
-rw-r--r--server/sonar-web/src/main/js/helpers/testReactTestingUtils.tsx17
1 files changed, 11 insertions, 6 deletions
diff --git a/server/sonar-web/src/main/js/helpers/testReactTestingUtils.tsx b/server/sonar-web/src/main/js/helpers/testReactTestingUtils.tsx
index 2faaba061de..e4eb8400ac5 100644
--- a/server/sonar-web/src/main/js/helpers/testReactTestingUtils.tsx
+++ b/server/sonar-web/src/main/js/helpers/testReactTestingUtils.tsx
@@ -18,6 +18,7 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+import { TooltipProvider } from '@sonarsource/echoes-react';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { Matcher, RenderResult, render, screen, within } from '@testing-library/react';
import { UserEvent } from '@testing-library/user-event/dist/types/setup/setup';
@@ -126,11 +127,13 @@ export function renderComponent(
<AvailableFeaturesContext.Provider value={featureList}>
<CurrentUserContextProvider currentUser={currentUser}>
<AppStateContextProvider appState={appState}>
- <MemoryRouter initialEntries={[pathname]}>
- <Routes>
- <Route path="*" element={children} />
- </Routes>
- </MemoryRouter>
+ <TooltipProvider delayDuration={0}>
+ <MemoryRouter initialEntries={[pathname]}>
+ <Routes>
+ <Route path="*" element={children} />
+ </Routes>
+ </MemoryRouter>
+ </TooltipProvider>
</AppStateContextProvider>
</CurrentUserContextProvider>
</AvailableFeaturesContext.Provider>
@@ -238,7 +241,9 @@ function renderRoutedApp(
<QueryClientProvider client={queryClient}>
<ToastMessageContainer />
- <RouterProvider router={router} />
+ <TooltipProvider delayDuration={0}>
+ <RouterProvider router={router} />
+ </TooltipProvider>
</QueryClientProvider>
</IndexationContextProvider>
</AppStateContextProvider>