diff --git a/src/components/ClinicalDashboard.tsx b/src/components/ClinicalDashboard.tsx index 46c9f3b1f..5ee16227c 100644 --- a/src/components/ClinicalDashboard.tsx +++ b/src/components/ClinicalDashboard.tsx @@ -3502,9 +3502,6 @@ export function ClinicalDashboard({ {showSystemNotice && answer ? renderSystemNotice("sm:hidden") : null} - {activeModeResultKind === "answer" && answer && ( - - )} {activeModeResultKind === "answer" && answer && ( { + if (await tableDialog.isVisible().catch(() => false)) return; + await tableSurface.click({ force: true }); + await expect(tableDialog).toBeVisible({ timeout: 2_000 }); + }).toPass({ timeout: 15_000 }); return tableDialog; } @@ -1475,7 +1478,9 @@ test.describe("Clinical KB UI smoke coverage", () => { await page.goto(`/?mode=answer&q=${encodeURIComponent(question)}&run=1`, { waitUntil: "domcontentloaded", }); - await expect(page.getByTestId("plain-answer-response")).toBeVisible({ timeout: uiAssertionTimeoutMs }); + await expect(page.getByTestId("plain-answer-response")).toBeVisible({ timeout: 15_000 }); + + await expect(page.getByTestId("cross-mode-links")).toHaveCount(1, { timeout: 15_000 }); const answerSurface = page.locator('[data-dashboard-stage="answer-surface"]'); const strip = answerSurface.getByTestId("cross-mode-links");