Skip to content

Commit b6a3870

Browse files
committed
HeroText - Playwright UI tests updated
1 parent bd219eb commit b6a3870

239 files changed

Lines changed: 16 additions & 1 deletion

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

app/components/01.atoms/text-blocks/hero-text/playwright/hero-text.playwright.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,3 +93,18 @@ test.describe("HeroText — axis × fontSize variants", () => {
9393
}
9494
}
9595
});
96+
97+
// -------------------------
98+
// Icon variants
99+
// -------------------------
100+
test.describe("HeroText — icon variants", () => {
101+
test("with icon", async ({ page }) => {
102+
const heading = await getHeading(page, { icon: "lucide:sparkles" });
103+
await expect(heading).toHaveScreenshot("icon-with.png");
104+
});
105+
106+
test("without icon", async ({ page }) => {
107+
const heading = await getHeading(page, { icon: "!undefined" });
108+
await expect(heading).toHaveScreenshot("icon-without.png");
109+
});
110+
});
681 Bytes
823 Bytes

0 commit comments

Comments
 (0)