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

Function getMessageWindow

tests/ui/chat/bottomLayoutShift.test.ts:37–43  ·  view source on GitHub ↗
(container: HTMLElement)

Source from the content-addressed store, hash-verified

35}
36
37function getMessageWindow(container: HTMLElement): HTMLDivElement {
38 const element = container.querySelector('[data-testid="message-window"]');
39 if (!element || element.tagName !== "DIV") {
40 throw new Error("Message window not found");
41 }
42 return element as HTMLDivElement;
43}
44
45describe("Chat bottom layout stability", () => {
46 beforeAll(async () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected