mengw15 opened a new issue, #5453: URL: https://github.com/apache/texera/issues/5453
### Task Summary `auth-guard.service.ts` ([frontend/.../common/service/user/auth-guard.service.ts](https://github.com/apache/texera/blob/a820f6727/frontend/src/app/common/service/user/auth-guard.service.ts)) is a 45-LOC `CanActivate` route guard that decides whether a navigation may proceed based on the authentication state. It currently has no `.spec.ts`. ### Suggested coverage - Authenticated user → guard returns `true` - Unauthenticated user → guard returns `UrlTree` (or `false`) and redirects to login - Returning user with expired session → treated as unauthenticated - Guard does not subscribe without cleanup (no leak) ### Acceptance - New `auth-guard.service.spec.ts` next to the service - Mock `UserService` / `Router` via Angular `TestBed` - All new tests green under default jsdom target -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
