feat: complete evidence restructuring worktree
This commit is contained in:
@@ -159,6 +159,7 @@ test("opens Workspace management from the right sidebar without interrupting the
|
||||
server.use(
|
||||
http.get("/api/workspace-registry/status", () =>
|
||||
HttpResponse.json({ branch: "main", ahead: 0, behind: 0, degraded: false })),
|
||||
http.get("/api/health/dwh", () => HttpResponse.json({ ok: false })),
|
||||
);
|
||||
renderShell();
|
||||
|
||||
@@ -168,6 +169,21 @@ test("opens Workspace management from the right sidebar without interrupting the
|
||||
expect(screen.getByTestId("app-shell")).toHaveAttribute("data-activity-layout", "closed");
|
||||
});
|
||||
|
||||
test("does not block the shell when the DWH is unavailable at startup", async () => {
|
||||
let healthChecks = 0;
|
||||
server.use(
|
||||
http.get("/api/health/dwh", () => {
|
||||
healthChecks += 1;
|
||||
return HttpResponse.json({ ok: false });
|
||||
}),
|
||||
);
|
||||
renderShell();
|
||||
|
||||
expect(await screen.findByRole("button", { name: "Workspace management" })).toBeVisible();
|
||||
expect(screen.queryByRole("heading", { name: "Connection unavailable" })).not.toBeInTheDocument();
|
||||
expect(healthChecks).toBe(0);
|
||||
});
|
||||
|
||||
|
||||
test("marks the composer as awaiting input for a pending freetext gate", () => {
|
||||
useSessionStore.setState({
|
||||
|
||||
Reference in New Issue
Block a user