Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

test([issue-715]): make absent-provenance assertion meaningful

[._.]/ Adam Eivy68cc4b609938
diff --git a/client/src/components/insights/InsightCard.test.jsx b/client/src/components/insights/InsightCard.test.jsx
index 5812ea7bcc..a2ab36a4a8 100644
--- a/client/src/components/insights/InsightCard.test.jsx
+++ b/client/src/components/insights/InsightCard.test.jsx
@@ -15,8 +15,11 @@ describe('InsightCard', () => {
});
it('renders no provenance chip when provenance is absent', () => {
+ // The badge here is a non-interactive span, so the only button that could
+ // appear is the provenance chip — asserting zero buttons genuinely fails if
+ // a chip ever leaks in without a provenance prop.
render(<InsightCard title="No prov" badge={<span>Strong</span>} />);
- expect(screen.queryByRole('button', { name: /tap for how this is derived/i })).toBeNull();
+ expect(screen.queryByRole('button')).toBeNull();
});
it('renders a provenance chip from the provenance prop and reveals override copy on click', () => {