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

Function expectThinkingLabel

tests/ui/agents/thinkingPersistence.test.ts:136–148  ·  view source on GitHub ↗
(container: HTMLElement, expected: string)

Source from the content-addressed store, hash-verified

134}
135
136async function expectThinkingLabel(container: HTMLElement, expected: string): Promise<void> {
137 await waitFor(
138 () => {
139 const group = container.querySelector('[data-component="ThinkingSliderGroup"]');
140 const label = group?.querySelector("[data-thinking-label]");
141 const text = label?.textContent?.trim();
142 if (text !== expected) {
143 throw new Error(`Expected thinking label ${expected} but got ${text ?? "<missing>"}`);
144 }
145 },
146 { timeout: 3000 }
147 );
148}
149
150describeIntegration("Thinking level persistence", () => {
151 test("keeps XHIGH preference when switching away and back", async () => {

Callers 1

Calls 1

waitForFunction · 0.50

Tested by

no test coverage detected