fix(poster) : show fifth base stat
CI / Verify (push) Successful in 1m38s
CI / Build immutable images and deploy (push) Successful in 2m5s

This commit is contained in:
2026-09-27 22:27:43 +07:00 Unverified
parent cb09f1af3e
commit 4d304eea62
2 changed files with 28 additions and 3 deletions
+23
View File
@@ -140,6 +140,29 @@ describe("material poster text", () => {
expect(html).not.toContain("เลเวล 90");
});
it("shows a fifth base stat in its own box", () => {
const html = renderToStaticMarkup(
<MaterialPoster
{...props}
character={{
...props.character,
baseStats: [
{ key: "hp", value: 12000 },
{ key: "atk", value: 300 },
{ key: "def", value: 700 },
{ key: "CRIT Rate%", value: 24.2 },
{ key: "Energy Recharge%", value: 132 },
],
}}
/>,
);
expect(html).toContain("Energy Recharge%");
expect(html).toContain("132%");
expect(html).toContain("h-[7cqw]");
expect(html).toContain("top-[57%]");
});
it("optimizes scale-aware character artwork and bleeding layers for export", () => {
const characterArtUrl = "https://buzz-cdn.astrxl.dev/posters/raiden.png";
const html = renderToStaticMarkup(