diff --git a/dashboard/src/__tests__/policy-tab.test.tsx b/dashboard/src/__tests__/policy-tab.test.tsx index ffc9cc7..cfd0cc4 100644 --- a/dashboard/src/__tests__/policy-tab.test.tsx +++ b/dashboard/src/__tests__/policy-tab.test.tsx @@ -85,6 +85,16 @@ describe("PolicyTab — rendering (Issue #47)", () => { render(); expect(screen.getByText(/Rosa Garcia/)).toBeTruthy(); }); + + it("renders the accurate server-side enforcement copy", () => { + const { container } = render(); + const policyCopy = screen.getByText(/Enforced server-side by the agent/i); + + expect(policyCopy.textContent).toMatchInlineSnapshot( + `"Enforced server-side by the agent before every payment. See docs/SPENDING-POLICY.md for how."`, + ); + expect(container.textContent).not.toMatch(/Soroban smart contracts/i); + }); }); describe("PolicyTab — form interaction (Issue #47)", () => { diff --git a/dashboard/src/components/tabs/policy-tab.tsx b/dashboard/src/components/tabs/policy-tab.tsx index 22ef552..a5e23d2 100644 --- a/dashboard/src/components/tabs/policy-tab.tsx +++ b/dashboard/src/components/tabs/policy-tab.tsx @@ -77,8 +77,8 @@ export function PolicyTab({ Spending Policy for {recipient.name}

- These limits are enforced by Soroban smart contracts on Stellar. The - agent cannot exceed them. + Enforced server-side by the agent before every payment. See + docs/SPENDING-POLICY.md for how.