The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(desktop): cover editable targets inside context triggers
Yuan Li49f5f78e5099
diff --git a/apps/desktop/src/app/context-menu/app-context-menu.test.tsx b/apps/desktop/src/app/context-menu/app-context-menu.test.tsxindex f8c32b763e6..9b30fbcabe3 100644--- a/apps/desktop/src/app/context-menu/app-context-menu.test.tsx+++ b/apps/desktop/src/app/context-menu/app-context-menu.test.tsx@@ -394,6 +394,20 @@ describe('AppContextMenu', () => {expect(await screen.findByText('Copy URL')).toBeTruthy()})+ it('lets editable targets inside a radix surface use the edit menu', async () => {+ installBridge()+ mountMenu()+ const host = attach(+ `<div data-slot="context-menu-trigger"><textarea>draft text</textarea></div>`+ )+ const textarea = host.querySelector('textarea')!++ fireEvent.contextMenu(textarea)++ expect(await screen.findByText('Select all')).toBeTruthy()+ expect(screen.getByText('Paste')).toBeTruthy()+ })+it('leaves surfaces with their own radix menu alone', () => {installBridge()mountMenu()