The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(desktop): align external-link icon tests with default-off
Brooklyn Nicholson9947a6065bac
diff --git a/apps/desktop/src/lib/external-link.test.tsx b/apps/desktop/src/lib/external-link.test.tsxindex 77210564801..582b061e8ea 100644--- a/apps/desktop/src/lib/external-link.test.tsx+++ b/apps/desktop/src/lib/external-link.test.tsx@@ -112,11 +112,24 @@ describe('external link helpers', () => {expect(openExternal).toHaveBeenCalledWith('https://example.com/path/to/resource')})- it('shows a trailing external-link icon', () => {+ it('hides the trailing external-link icon by default', () => {installDesktopBridge()render(<ExternalLink href="https://example.com/path/to/resource">Example link</ExternalLink>)+ const link = screen.getByRole('link', { name: 'Example link' })+ expect(link.querySelector('svg')).toBeNull()+ })++ it('shows a trailing external-link icon when opted in', () => {+ installDesktopBridge()++ render(+ <ExternalLink href="https://example.com/path/to/resource" showExternalIcon>+ Example link+ </ExternalLink>,+ )+const link = screen.getByRole('link', { name: 'Example link' })expect(link.querySelector('svg')).toBeTruthy()})