Skip to content

Commit 1d37805

Browse files
t3dotggclaude
andcommitted
test(web): fenced double-click asserts the selected word
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent c80e22e commit 1d37805

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/web/src/components/ChatMarkdown.browser.test.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ describe("ChatMarkdown inline code selection", () => {
340340
window.getSelection()?.removeAllRanges();
341341
const fenced = screen.container.querySelector("pre code")!;
342342
await userEvent.dblClick(fenced, { position: { x: 4, y: 4 } });
343-
expect(window.getSelection()?.toString()).not.toContain("word");
343+
expect(window.getSelection()?.toString()).toBe("fenced");
344344
});
345345
});
346346

0 commit comments

Comments
 (0)