fix(runtime): stabilize navigation and custom errors
This commit is contained in:
@@ -463,6 +463,23 @@ test("footer renders header and link entries with the requested column count", a
|
||||
);
|
||||
});
|
||||
|
||||
test("footer emits valid current-page state and translation markers for data items", async () => {
|
||||
const source = readFileSync(uiComponentPath("Footer"), "utf8");
|
||||
const html = await renderComponent(source, {
|
||||
items: [
|
||||
{
|
||||
type: "header",
|
||||
label: "Services",
|
||||
labelKey: "footer.services",
|
||||
items: [{ label: "Report", labelKey: "footer.report", href: "/report" }],
|
||||
},
|
||||
],
|
||||
});
|
||||
expect(html).toContain('data-t="footer.services"');
|
||||
expect(html).toContain('data-t="footer.report"');
|
||||
expect(html).not.toContain('aria-current=""');
|
||||
});
|
||||
|
||||
test("component-system CSS includes responsive, theme-token, focus, and reduced-motion rules", () => {
|
||||
const css = uiStyles();
|
||||
expect(css).toContain("@media (max-width: 768px)");
|
||||
|
||||
Reference in New Issue
Block a user