diff --git a/src/components/insights/__tests__/insight-advisor-card.test.tsx b/src/components/insights/__tests__/insight-advisor-card.test.tsx index 3d16c3b0a..b78c02666 100644 --- a/src/components/insights/__tests__/insight-advisor-card.test.tsx +++ b/src/components/insights/__tests__/insight-advisor-card.test.tsx @@ -302,6 +302,9 @@ describe(" — polished loading / empty / error states (B1b) // No crash means the test got here. Surface the regenerate CTA so // the user has a one-click escape from the legacy state. expect(html).toContain('data-slot="insight-legacy-payload-cta"'); + // F-06 (v1.4.19): the CTA copy says "regenerate", so the button + // label must say "Regenerate" too — not "Start analysis". + expect(html).toContain("Regenerate"); }); it("error state without onRegenerate hides the retry button", () => { diff --git a/src/components/insights/insight-advisor-card.tsx b/src/components/insights/insight-advisor-card.tsx index 0c8f76bb1..6127c7f46 100644 --- a/src/components/insights/insight-advisor-card.tsx +++ b/src/components/insights/insight-advisor-card.tsx @@ -505,7 +505,7 @@ export function InsightAdvisorCard({ ) : ( )} - {t("insights.startAnalysis")} + {t("insights.heroRegenerate")} )} @@ -692,7 +692,7 @@ export function InsightAdvisorCard({ ) : ( )} - {t("insights.startAnalysis")} + {t("insights.heroRegenerate")}