feat(tip): rename premium coffee tiers
This commit is contained in:
@@ -20,13 +20,13 @@ const items: readonly TipCoffeeTierItem[] = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "medium",
|
type: "medium",
|
||||||
displayName: "Golden Reserve",
|
displayName: "Gilded Heart",
|
||||||
priceLabel: "US$ 9.99",
|
priceLabel: "US$ 9.99",
|
||||||
unavailable: false,
|
unavailable: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "large",
|
type: "large",
|
||||||
displayName: "Imperial Grand Cru",
|
displayName: "Crown Blossom",
|
||||||
priceLabel: "US$ 19.99",
|
priceLabel: "US$ 19.99",
|
||||||
unavailable: false,
|
unavailable: false,
|
||||||
},
|
},
|
||||||
@@ -67,8 +67,8 @@ describe("TipCoffeeTierSelector", () => {
|
|||||||
act(() => root.render(<Harness />));
|
act(() => root.render(<Harness />));
|
||||||
|
|
||||||
expect(container.textContent).toContain("Velvet Espresso");
|
expect(container.textContent).toContain("Velvet Espresso");
|
||||||
expect(container.textContent).toContain("Golden Reserve");
|
expect(container.textContent).toContain("Gilded Heart");
|
||||||
expect(container.textContent).toContain("Imperial Grand Cru");
|
expect(container.textContent).toContain("Crown Blossom");
|
||||||
expect(
|
expect(
|
||||||
container.querySelector<HTMLInputElement>('input[value="medium"]')
|
container.querySelector<HTMLInputElement>('input[value="medium"]')
|
||||||
?.checked,
|
?.checked,
|
||||||
|
|||||||
@@ -29,13 +29,13 @@ describe("tip coffee configuration", () => {
|
|||||||
});
|
});
|
||||||
expect(getTipCoffeeOption("medium")).toMatchObject({
|
expect(getTipCoffeeOption("medium")).toMatchObject({
|
||||||
amountCents: 999,
|
amountCents: 999,
|
||||||
displayName: "Golden Reserve",
|
displayName: "Gilded Heart",
|
||||||
image: { src: "/images/tip/medium.png", width: 1024, height: 1024 },
|
image: { src: "/images/tip/medium.png", width: 1024, height: 1024 },
|
||||||
planId: "tip_coffee_usd_9_99",
|
planId: "tip_coffee_usd_9_99",
|
||||||
});
|
});
|
||||||
expect(getTipCoffeeOption("large")).toMatchObject({
|
expect(getTipCoffeeOption("large")).toMatchObject({
|
||||||
amountCents: 1999,
|
amountCents: 1999,
|
||||||
displayName: "Imperial Grand Cru",
|
displayName: "Crown Blossom",
|
||||||
image: { src: "/images/tip/large.png", width: 1024, height: 1024 },
|
image: { src: "/images/tip/large.png", width: 1024, height: 1024 },
|
||||||
planId: "tip_coffee_usd_19_99",
|
planId: "tip_coffee_usd_19_99",
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ const TIP_COFFEE_OPTION_BY_TYPE: Record<TipCoffeeType, TipCoffeeOption> = {
|
|||||||
medium: {
|
medium: {
|
||||||
type: "medium",
|
type: "medium",
|
||||||
amountCents: 999,
|
amountCents: 999,
|
||||||
displayName: "Golden Reserve",
|
displayName: "Gilded Heart",
|
||||||
image: {
|
image: {
|
||||||
src: "/images/tip/medium.png",
|
src: "/images/tip/medium.png",
|
||||||
width: 1024,
|
width: 1024,
|
||||||
@@ -43,7 +43,7 @@ const TIP_COFFEE_OPTION_BY_TYPE: Record<TipCoffeeType, TipCoffeeOption> = {
|
|||||||
large: {
|
large: {
|
||||||
type: "large",
|
type: "large",
|
||||||
amountCents: 1999,
|
amountCents: 1999,
|
||||||
displayName: "Imperial Grand Cru",
|
displayName: "Crown Blossom",
|
||||||
image: {
|
image: {
|
||||||
src: "/images/tip/large.png",
|
src: "/images/tip/large.png",
|
||||||
width: 1024,
|
width: 1024,
|
||||||
|
|||||||
Reference in New Issue
Block a user