fix: address capability discovery review findings

This commit is contained in:
lda
2026-08-04 22:05:12 +07:00 Verified
parent 40cbac7909
commit 2facae87a8
6 changed files with 136 additions and 30 deletions
+5 -5
View File
@@ -11,8 +11,8 @@ describe("AppRoutes", () => {
it.todo("restores source, demo, and lifecycle application coverage after Task 5-7");
it.each([
["/", "Discover"],
["/console", "Discover"],
["/", "Discover capabilities"],
["/console", "Discover capabilities"],
])("redirects %s to the discover workspace leaf", async (entry, label) => {
render(
<MemoryRouter initialEntries={[entry]}>
@@ -47,7 +47,7 @@ describe("AppRoutes", () => {
expect(screen.queryByRole("navigation", { name: "Workflow lifecycle" })).toBeNull();
});
it("shows the connection prompt and pending route message while disconnected", () => {
it("shows the connection prompt and discovery state while disconnected", () => {
render(
<MemoryRouter initialEntries={["/console/discover"]}>
<AppRoutes />
@@ -55,10 +55,10 @@ describe("AppRoutes", () => {
);
expect(screen.getByLabelText("Workflow JSON-RPC URL")).toBeInTheDocument();
expect(screen.getByRole("heading", { name: "Discover capabilities" })).toBeInTheDocument();
expect(
screen.getByText("Discover is unavailable until a workflow server is connected."),
screen.getByText("Connect a workflow server to discover capabilities."),
).toBeInTheDocument();
expect(screen.getByText("Connect a workflow server to view Discover.")).toBeInTheDocument();
});
it("navigates between lifecycle links without leaving the workspace shell", async () => {