(
workspaceId: string,
displayTitle: string
)
| 467 | } |
| 468 | |
| 469 | function getWorkspaceTitleElement( |
| 470 | workspaceId: string, |
| 471 | displayTitle: string |
| 472 | ): HTMLSpanElement | null { |
| 473 | const workspaceRow = app.view.container.querySelector( |
| 474 | `[data-workspace-id="${workspaceId}"]` |
| 475 | ) as HTMLElement | null; |
| 476 | if (!workspaceRow) { |
| 477 | return null; |
| 478 | } |
| 479 | |
| 480 | const textSpans = Array.from(workspaceRow.querySelectorAll("span")) as HTMLSpanElement[]; |
| 481 | return textSpans.find((span) => span.textContent?.trim() === displayTitle) ?? null; |
| 482 | } |
| 483 | |
| 484 | beforeEach(async () => { |
| 485 | app = await createAppHarness({ branchPrefix: "unread-manual" }); |
no outgoing calls
no test coverage detected