(container: HTMLElement, workspaceId: string)
| 15 | import { workspaceStore } from "@/browser/stores/WorkspaceStore"; |
| 16 | |
| 17 | function getWorkspaceElement(container: HTMLElement, workspaceId: string): HTMLElement { |
| 18 | const el = container.querySelector( |
| 19 | `[role="button"][data-workspace-id="${workspaceId}"]` |
| 20 | ) as HTMLElement | null; |
| 21 | if (!el) { |
| 22 | throw new Error(`Workspace element not found for ${workspaceId}`); |
| 23 | } |
| 24 | return el; |
| 25 | } |
| 26 | |
| 27 | describe("Workspace intermediate status (mock AI router)", () => { |
| 28 | beforeAll(async () => { |
no outgoing calls
no test coverage detected