feat(tip): rotate support prompts
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user