Improve page load times and rendering

This commit is contained in:
adilallo
2026-05-26 06:59:52 -06:00
parent 6b45a2e5d0
commit 3be188a3cc
29 changed files with 467 additions and 176 deletions
+6 -3
View File
@@ -138,10 +138,13 @@ describe("Group layouts (chrome composition)", () => {
test("AppLayout wraps children in <main flex-1> with no footer", () => {
const tree = AppLayout({ children: <div>app-child</div> });
expect(tree.type).toBe("main");
expect(tree.props.className).toContain("flex-1");
const main = findDescendant(
tree,
(n) => n?.type === "main" && n.props?.className?.includes("flex-1"),
);
expect(main).toBeTruthy();
expect(
findDescendant(tree, (n) => typeof n === "string" && n.includes("app-child")),
findDescendant(main, (n) => typeof n === "string" && n.includes("app-child")),
).toBeTruthy();
});
});