feat(tip): enlarge and simplify payment interface
This commit is contained in:
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user