test(approutes): add real-screen mount assertions for newly wired miniapps

This commit is contained in:
OmO Orchestrator committed 2026-11-17 20:34:57 -05:00
1 parent 50fcd85968
commit f4d40cb04e
1 file changed
+9
+9
View File
@@ -47,6 +47,15 @@ describe("AppRoutes shell router", () => {
} else if (entry.id === "light-clock") {
expect(screen.getByRole("region", { name: "Light Clock" })).toBeInTheDocument();
expect(screen.queryByTestId("miniapp-placeholder")).not.toBeInTheDocument();
} else if (entry.id === "fair-draw") {
expect(screen.getByRole("region", { name: "Fair Draw" })).toBeInTheDocument();
expect(screen.queryByTestId("miniapp-placeholder")).not.toBeInTheDocument();
} else if (entry.id === "find-family") {
expect(screen.getByRole("region", { name: "Find Family" })).toBeInTheDocument();
expect(screen.queryByTestId("miniapp-placeholder")).not.toBeInTheDocument();
} else if (entry.id === "health-post") {
expect(screen.getByRole("region", { name: "Health Post" })).toBeInTheDocument();
expect(screen.queryByTestId("miniapp-placeholder")).not.toBeInTheDocument();
} else {
expect(screen.getByTestId("miniapp-placeholder")).toHaveTextContent(`Coming soon: ${entry.label}`);
}