diff --git a/apps/web/src/components/chat/ThreadDetailsPrRow.browser.test.tsx b/apps/web/src/components/chat/ThreadDetailsPrRow.browser.test.tsx index 1c3fa1a3899fc..0c33baf1a2e4c 100644 --- a/apps/web/src/components/chat/ThreadDetailsPrRow.browser.test.tsx +++ b/apps/web/src/components/chat/ThreadDetailsPrRow.browser.test.tsx @@ -361,6 +361,13 @@ it("names a linked pull request row by its kind, number and title, not its URL", expect(name).toMatch(/pull request/i); expect(name).toContain("#1"); expect(name).toContain("Test PR"); + const exposedNumbers = [...screen.container.querySelectorAll("span")].filter( + (span) => + span.textContent?.trim() === "#1" && + span.closest("button") === null && + span.closest('[aria-hidden="true"]') === null, + ); + expect(exposedNumbers).toHaveLength(0); }); it("names a linked issue row by its kind, number and title, not its URL", async () => { diff --git a/apps/web/src/components/chat/ThreadDetailsPrRow.tsx b/apps/web/src/components/chat/ThreadDetailsPrRow.tsx index c067632980156..3fc70104882c8 100644 --- a/apps/web/src/components/chat/ThreadDetailsPrRow.tsx +++ b/apps/web/src/components/chat/ThreadDetailsPrRow.tsx @@ -483,7 +483,9 @@ export function ThreadDetailsPrRow({