Skip to content

Commit 652dcb7

Browse files
test(web): require both paragraphs in the triple-click selection test
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent f34b5b6 commit 652dcb7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,9 +502,11 @@ describe("ChatMarkdown inline code selection", () => {
502502
return window.getSelection()?.toString().trim();
503503
};
504504

505+
const paragraphs = screen.container.querySelectorAll("p");
506+
expect(paragraphs).toHaveLength(2);
505507
const selections = [];
506508
const lines = [];
507-
for (const paragraph of screen.container.querySelectorAll("p")) {
509+
for (const paragraph of paragraphs) {
508510
lines.push(paragraph.textContent?.trim(), paragraph.textContent?.trim());
509511
selections.push(
510512
await tripleClickWord(paragraph, "Before"),

0 commit comments

Comments
 (0)