fix(ui): keep breadcrumb separators visible
This commit is contained in:
1 parent
1ff2c3339c
commit
510b3ba777
4 files changed
+20
-4
No files matched your search
@@ -3184,6 +3184,16 @@ test("breadcrumb renders a standalone active page with its icon", async () => {
|
||||
expect(dom.querySelectorAll(".wrn-breadcrumb__item").length).toBe(3);
|
||||
});
|
||||
|
||||
test("breadcrumb default separators remain visible without generated icon CSS", async () => {
|
||||
const source = readFileSync(uiComponentPath("Breadcrumb"), "utf8");
|
||||
const html = await renderComponent(source, {
|
||||
showHome: true,
|
||||
items: [{ label: "Legal" }, { label: "Terms", current: true }],
|
||||
});
|
||||
expect(html).toContain("›");
|
||||
expect(html).not.toContain("icon-[lucide--chevron-right]");
|
||||
});
|
||||
|
||||
test("mega menu bridges the gap between its trigger and panel", async () => {
|
||||
const source = readFileSync(uiComponentPath("MegaMenu"), "utf8");
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user