diff --git a/src/app/api/insights/__tests__/coach-route-gate-inventory.test.ts b/src/app/api/insights/__tests__/coach-route-gate-inventory.test.ts index fbbbe4f92..939ff22f8 100644 --- a/src/app/api/insights/__tests__/coach-route-gate-inventory.test.ts +++ b/src/app/api/insights/__tests__/coach-route-gate-inventory.test.ts @@ -51,6 +51,9 @@ const NON_COACH_GATED_ROUTES: ReadonlyArray = [ // same `insightStatus` sub-flag as the seven specialised status routes. "src/app/api/insights/metric-status/route.ts", "src/app/api/insights/mood-status/route.ts", + // v1.11.0 — period-narrative read route. Gates on the same `insightStatus` + // sub-flag as the assessment routes (no Coach prose). + "src/app/api/insights/narrative/route.ts", // v1.9.0 — on-demand full assessment warm. Warms the same assessment // cards the status routes serve, so it gates on `insightStatus`, not // `coach`: a user with assessments enabled but Coach disabled can warm. diff --git a/src/components/settings/__tests__/integrations-section.test.tsx b/src/components/settings/__tests__/integrations-section.test.tsx index 605b5a54c..f0d38f124 100644 --- a/src/components/settings/__tests__/integrations-section.test.tsx +++ b/src/components/settings/__tests__/integrations-section.test.tsx @@ -163,8 +163,8 @@ describe("IntegrationsSection — single-status-display contract (A5)", () => { }); const html = render(); - // Exactly one pill per card → 2 pills total. - expect(count(html, 'data-testid="integration-status-pill"')).toBe(2); + // Exactly one pill per card → 3 pills total (Withings, moodLog, WHOOP). + expect(count(html, 'data-testid="integration-status-pill"')).toBe(3); // The redundant banner from v1.4.15 is gone. expect(html).not.toContain('data-testid="integration-status-banner"'); // Card-body "letzter Sync" repetition is gone — no @@ -353,8 +353,8 @@ describe("IntegrationsSection — single-status-display contract (A5)", () => { }); const html = render(); - // Both cards include the section divider data-testid so the + // Every integration card includes the section divider data-testid so the // header → body separation is visually consistent. - expect(count(html, 'data-testid="integration-card-divider"')).toBe(2); + expect(count(html, 'data-testid="integration-card-divider"')).toBe(3); }); });