feat(workflow-bar): optimistic F1 at start; all-green when session finalized
This commit is contained in:
@@ -38,6 +38,9 @@ test("F1: create session -> widget via SSE -> respond -> POST /response", async
|
||||
// Wait for the session to be created and SSE to connect
|
||||
await waitFor(() => expect(FakeEventSource.instances).toHaveLength(1));
|
||||
|
||||
// Optimistic lifecycle: a brand-new question paints F1 immediately (before any gate).
|
||||
await waitFor(() => expect(useSessionStore.getState().currentPhase).toBe("F1"));
|
||||
|
||||
// Simulate the backend emitting the F1 widget via a NAMED SSE event
|
||||
// (`event: ui_request`) — the same addEventListener path production uses.
|
||||
act(() =>
|
||||
|
||||
Reference in New Issue
Block a user