feat(tip): enlarge and simplify payment interface

This commit is contained in:
2026-07-21 15:51:09 +08:00
parent 0381090867
commit 36d8fcf2c3
5 changed files with 96 additions and 124 deletions
@@ -188,7 +188,7 @@ describe("TipScreen checkout", () => {
});
});
it("renders the compact purchase flow with character atmosphere", () => {
it("renders the enlarged purchase flow without a character Cover", () => {
renderScreen();
expect(container.textContent).toContain("Send Maya a gift");
@@ -204,14 +204,10 @@ describe("TipScreen checkout", () => {
).toBe("compact");
expect(container.textContent).not.toContain("A little sweetness for today");
expect(container.textContent).not.toContain("Tip Maya");
expect(
container
.querySelector("main")
?.getAttribute("style"),
).toContain('--tip-cover-image: url("/images/cover/maya.png")');
expect(container.querySelector("main")?.getAttribute("style")).toBeNull();
expect(
container.querySelectorAll('main > div[aria-hidden="true"]'),
).toHaveLength(3);
).toHaveLength(2);
});
it.each([