MCPcopy
hub / github.com/coder/mux / getMessageWindow

Function getMessageWindow

tests/ui/chat/composerDockAnchoring.test.ts:16–22  ·  view source on GitHub ↗
(container: HTMLElement)

Source from the content-addressed store, hash-verified

14import { mockScrollMetrics as mockScrollportMetrics } from "../scrollMetrics";
15
16function 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:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected