diff --git a/src/components/onboarding/__tests__/done-screen.test.tsx b/src/components/onboarding/__tests__/done-screen.test.tsx index f9113451e..946136252 100644 --- a/src/components/onboarding/__tests__/done-screen.test.tsx +++ b/src/components/onboarding/__tests__/done-screen.test.tsx @@ -117,11 +117,11 @@ describe(" AI line", () => { ); expect(line).not.toBeNull(); expect(line![1]).toContain("AI is optional"); - expect(line![1]).toContain('href="/settings/ai"'); - // No sample briefing, no provider ladder, no one-tap offer. - expect(html).not.toContain("Example"); - expect(html).not.toContain("Three ways to turn it on"); - expect(html).not.toMatch(/]*>[^<]*Turn on/); + // Body copy, not meta: the line is read, so it is not muted. + expect(line![0]).not.toContain("text-muted-foreground"); + // One way on, the link, and no one-tap offer beside it. + expect(html.split('href="/settings/ai"')).toHaveLength(2); + expect(line![1]).not.toContain(" { diff --git a/src/components/onboarding/done-screen.tsx b/src/components/onboarding/done-screen.tsx index c95709db9..ac15f61f3 100644 --- a/src/components/onboarding/done-screen.tsx +++ b/src/components/onboarding/done-screen.tsx @@ -123,10 +123,7 @@ export function DoneScreen({ state }: { state: OnboardingStateDto }) { {showAiLine ? ( -

+

{t("onboarding.done.aiOptional")}{" "} {t("onboarding.done.aiSetupCta")}