fix(poster) : show fifth base stat
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user