feat(tip): rotate support prompts

This commit is contained in:
2026-07-21 11:30:32 +08:00
parent e512a42483
commit 55cb98ed14
7 changed files with 279 additions and 3 deletions
@@ -83,6 +83,12 @@ vi.mock("../tip-checkout-button", () => ({
vi.mock("../tip-coffee-tier-selector", () => ({
TipCoffeeTierSelector: () => null,
}));
vi.mock("../use-tip-support-prompt", () => ({
useTipSupportPrompt: () => ({
prompt: "A warm coffee prompt.",
isReady: true,
}),
}));
import { TipScreen } from "../tip-screen";
@@ -127,6 +133,7 @@ describe("TipScreen checkout", () => {
renderScreen();
const checkout = getCheckoutButton();
expect(container.textContent).toContain("A warm coffee prompt.");
expect(checkout.disabled).toBe(false);
act(() => checkout.click());