diff --git a/site/src/modules/dashboard/DeploymentBanner/DeploymentBannerView.stories.tsx b/site/src/modules/dashboard/DeploymentBanner/DeploymentBannerView.stories.tsx index bc5f85ed188..42feb0e4292 100644 --- a/site/src/modules/dashboard/DeploymentBanner/DeploymentBannerView.stories.tsx +++ b/site/src/modules/dashboard/DeploymentBanner/DeploymentBannerView.stories.tsx @@ -137,9 +137,8 @@ export const WithHealthIssues: Story = { const canvas = within(canvasElement); const trigger = canvas.getByTestId("deployment-health-trigger"); await userEvent.hover(trigger); - await waitFor(() => - expect(screen.getByRole("tooltip")).toBeInTheDocument(), - ); + // The content must accept pointer input so a clipped error list can scroll. + await userEvent.hover(await screen.findByRole("tooltip")); }, }; diff --git a/site/src/modules/dashboard/DeploymentBanner/DeploymentBannerView.tsx b/site/src/modules/dashboard/DeploymentBanner/DeploymentBannerView.tsx index 594dac84c85..6fcf1e40f64 100644 --- a/site/src/modules/dashboard/DeploymentBanner/DeploymentBannerView.tsx +++ b/site/src/modules/dashboard/DeploymentBanner/DeploymentBannerView.tsx @@ -136,12 +136,7 @@ export const DeploymentBannerView: React.FC = ({ )} - + {healthErrors.length > 0 ? ( <>