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

Function openSendModeMenu

tests/ui/chat/sendModeDropdown.test.ts:124–139  ·  view source on GitHub ↗
(container: HTMLElement)

Source from the content-addressed store, hash-verified

122}
123
124async function openSendModeMenu(container: HTMLElement): Promise<void> {
125 const trigger = await waitForSendModeMenuTrigger(container);
126 fireEvent.contextMenu(trigger, { clientX: 12, clientY: 12 });
127
128 await waitFor(
129 () => {
130 const row = Array.from(container.querySelectorAll("button")).find((button) =>
131 button.textContent?.includes("Send after turn")
132 );
133 if (!row) {
134 throw new Error("Send mode menu did not open");
135 }
136 },
137 { timeout: 30_000 }
138 );
139}
140
141describe("Send dispatch modes (mock AI router)", () => {
142 beforeAll(async () => {

Callers 1

Calls 2

waitForFunction · 0.50

Tested by

no test coverage detected