Skip to content

Commit

Permalink
fix: add 5 seconds delay before proceeding in e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
tobi-bams committed Oct 7, 2024
1 parent 93eda35 commit 099f79f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/Auth/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ export const AuthGuard = ({ children }: PropsWithChildren) => {
setChatInterfaceFeatureFlag(res.data.chatInterface || false)
}

if (isE2E) {
// eslint-disable-next-line no-promise-executor-return
await new Promise((r) => setTimeout(r, 5000))
}

setIsAuthenticated(true)
setRenderMainPage(true)
} catch (error) {
Expand Down

0 comments on commit 099f79f

Please sign in to comment.