fix(ui): keep breadcrumb separators visible
This commit is contained in:
@@ -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