The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(desktop): query Zoomable trigger by role after title= removal
Brooklyn Nicholson72cf71b93b90
diff --git a/apps/desktop/src/components/ui/zoomable-fit.test.tsx b/apps/desktop/src/components/ui/zoomable-fit.test.tsxindex f0cbc29214a..7948ce6c9ee 100644--- a/apps/desktop/src/components/ui/zoomable-fit.test.tsx+++ b/apps/desktop/src/components/ui/zoomable-fit.test.tsx@@ -76,7 +76,9 @@ describe('Zoomable overlay fit', () => {</Zoomable>)- fireEvent.click(screen.getByTitle('Open diagram'))+ // Main dropped the native title= from the trigger (aria-label only), so+ // query the accessible button name instead of a title attribute.+ fireEvent.click(screen.getByRole('button', { name: 'Open diagram' }))const { content, stage } = findNodes()fakeLayout(stage, content)@@ -97,7 +99,9 @@ describe('Zoomable overlay fit', () => {</Zoomable>)- fireEvent.click(screen.getByTitle('Open diagram'))+ // Main dropped the native title= from the trigger (aria-label only), so+ // query the accessible button name instead of a title attribute.+ fireEvent.click(screen.getByRole('button', { name: 'Open diagram' }))const { content, stage } = findNodes()fakeLayout(stage, content, 800, 400)@@ -116,7 +120,9 @@ describe('Zoomable overlay fit', () => {</Zoomable>)- fireEvent.click(screen.getByTitle('Open diagram'))+ // Main dropped the native title= from the trigger (aria-label only), so+ // query the accessible button name instead of a title attribute.+ fireEvent.click(screen.getByRole('button', { name: 'Open diagram' }))const { content, stage } = findNodes()fakeLayout(stage, content, 0, 0)@@ -137,7 +143,9 @@ describe('Zoomable overlay fit', () => {</Zoomable>)- fireEvent.click(screen.getByTitle('Open diagram'))+ // Main dropped the native title= from the trigger (aria-label only), so+ // query the accessible button name instead of a title attribute.+ fireEvent.click(screen.getByRole('button', { name: 'Open diagram' }))const { content, stage } = findNodes()fakeLayout(stage, content)@@ -169,7 +177,9 @@ describe('Zoomable overlay fit', () => {</Zoomable>)- fireEvent.click(screen.getByTitle('Open diagram'))+ // Main dropped the native title= from the trigger (aria-label only), so+ // query the accessible button name instead of a title attribute.+ fireEvent.click(screen.getByRole('button', { name: 'Open diagram' }))const { content, stage } = findNodes()