From 3c211f0e56ad2dc4e82007eeddd8e7178dbc95ee Mon Sep 17 00:00:00 2001 From: Josep Piguillem Date: Wed, 21 Oct 2026 20:24:37 +0200 Subject: [PATCH] test(web): the routes spec knows the public release notes page Co-Authored-By: Claude Opus 5.5 --- apps/web/src/app/app.routes.spec.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/apps/web/src/app/app.routes.spec.ts b/apps/web/src/app/app.routes.spec.ts index 208848b..0ee7768 100644 --- a/apps/web/src/app/app.routes.spec.ts +++ b/apps/web/src/app/app.routes.spec.ts @@ -25,6 +25,7 @@ describe('appRoutes', () => { 'portfolio', 'explore', 'share/:token', + 'notes/:token', 'cartera', 'explorar', 'p/:key', @@ -32,12 +33,13 @@ describe('appRoutes', () => { expect(children[0].canActivate).toContain(authGuard); expect(children[1].canActivate).toContain(authGuard); expect(children[2].canActivate).toBeUndefined(); - // The page for clients needs no session: its link is the key. + // The pages for clients need no session: their link is the key. expect(children[3].canActivate).toBeUndefined(); - expect(children[6].canActivate).toBeUndefined(); + expect(children[4].canActivate).toBeUndefined(); + expect(children[7].canActivate).toBeUndefined(); // The Spanish paths of shared links lead to the English ones. - expect(children[4].redirectTo).toBe('portfolio'); - expect(children[5].redirectTo).toBe('explore'); + expect(children[5].redirectTo).toBe('portfolio'); + expect(children[6].redirectTo).toBe('explore'); }); it('gives each page its own state, not the root', async () => {