From 56ae22304358c9c7276af23eaa95aacc16996330 Mon Sep 17 00:00:00 2001 From: Oluwatobi Bamidele Date: Tue, 10 Dec 2024 00:32:21 +0300 Subject: [PATCH] fix: failing cypress test due to mindset graph --- src/components/AppContainer/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/AppContainer/index.tsx b/src/components/AppContainer/index.tsx index d6004c2da..d2a3bb43c 100644 --- a/src/components/AppContainer/index.tsx +++ b/src/components/AppContainer/index.tsx @@ -1,5 +1,6 @@ import { lazy, Suspense } from 'react' import { Route, Routes } from 'react-router-dom' +import { isE2E } from '~/constants' import { E2ETests } from '~/utils' import { AppProviders } from '../App/Providers' import { AuthGuard } from '../Auth' @@ -10,7 +11,7 @@ const LazyMindSet = lazy(() => import('../mindset').then(({ MindSet }) => ({ def export const AppContainer = () => { const isMindSetHost = - window.location?.hostname === 'graphmindset.sphinx.chat' || window.location.hostname === 'localhost' + window.location?.hostname === 'graphmindset.sphinx.chat' || (window.location.hostname === 'localhost' && !isE2E) return (