From a0eb86db6854e737d0bd2c58dcafc5f5f992e17d Mon Sep 17 00:00:00 2001 From: Emil Pawlowski <39118431+emilpaw@users.noreply.github.com> Date: Mon, 6 Jun 2022 16:12:22 +0200 Subject: [PATCH] Fix redirect when not authenticated test When OIDC is used the redirect path is different. With this change the correct path is checked when using OIDC. --- .../main/webapp/app/shared/auth/private-route.spec.tsx.ejs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generators/client/templates/react/src/main/webapp/app/shared/auth/private-route.spec.tsx.ejs b/generators/client/templates/react/src/main/webapp/app/shared/auth/private-route.spec.tsx.ejs index 88645fbac972..d4fb26abc5db 100644 --- a/generators/client/templates/react/src/main/webapp/app/shared/auth/private-route.spec.tsx.ejs +++ b/generators/client/templates/react/src/main/webapp/app/shared/auth/private-route.spec.tsx.ejs @@ -88,7 +88,7 @@ describe('private-route component', () => { expect(container.innerHTML).toEqual('
Test
'); }); - it('Should redirect to login when not authenticated', () => { + it('Should redirect when not authenticated', () => { const { container } = wrapper( { } /> - Login} /> + Login} /> , { isAuthenticated: false,