test(approutes): add real-screen mount assertions for newly wired miniapps
This commit is contained in:
1 parent
50fcd85968
commit
f4d40cb04e
1 file changed
+9
@@ -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}`);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user