(container: HTMLElement)
| 14 | import { mockScrollMetrics as mockScrollportMetrics } from "../scrollMetrics"; |
| 15 | |
| 16 | function getMessageWindow(container: HTMLElement): HTMLDivElement { |
| 17 | const element = container.querySelector('[data-testid="message-window"]'); |
| 18 | if (!element || element.tagName !== "DIV") { |
| 19 | throw new Error("Message window not found"); |
| 20 | } |
| 21 | return element as HTMLDivElement; |
| 22 | } |
| 23 | |
| 24 | // These tests encode the structural contract behind the "send flash" + "hydration |
| 25 | // tear" fixes: |
no outgoing calls
no test coverage detected