diff --git a/frontend/vue-app/src/router/__tests__/authGuard.spec.ts b/frontend/vue-app/src/router/__tests__/authGuard.spec.ts index ef57fcd..eab508f 100644 --- a/frontend/vue-app/src/router/__tests__/authGuard.spec.ts +++ b/frontend/vue-app/src/router/__tests__/authGuard.spec.ts @@ -78,6 +78,22 @@ describe('router auth guard', () => { expect(path).toBe('/child') }) + it('allows logged-in parent user to access /auth/reset-password', async () => { + isUserLoggedInMock.value = true + isParentAuthenticatedMock.value = true + + const path = await navigate('/auth/reset-password') + expect(path).toBe('/auth/reset-password') + }) + + it('allows logged-in child user to access /auth/reset-password', async () => { + isUserLoggedInMock.value = true + isParentAuthenticatedMock.value = false + + const path = await navigate('/auth/reset-password') + expect(path).toBe('/auth/reset-password') + }) + // ── Unauthenticated users may access /auth ──────────────────────────────── it('allows unauthenticated user to access /auth', async () => {