@@ -969,21 +969,18 @@ try {
969969 await policy . getByRole ( 'radio' , { name : 'Ask' , exact : true } ) . click ( )
970970 await expect ( policy . getByRole ( 'radio' , { name : 'Ask' , exact : true } ) ) . toBeChecked ( )
971971 await capture ( 'tool-permissions-desktop' )
972- const toolDescription = page
973- . getByRole ( 'button' , { name : 'More information' , exact : true } )
974- . first ( )
975- await toolDescription . hover ( )
976- await expect ( page . getByRole ( 'tooltip' ) ) . toBeVisible ( )
972+ const toolPermissions = await context . request . get (
973+ `${ baseUrl . origin } /api/organizations/${ organizationId } /connected-accounts/personal/${ credentialId } /tool-permissions`
974+ )
975+ const jiraWrite = readAssistantToolPermissionsContract . response . schema
976+ . parse ( await toolPermissions . json ( ) )
977+ . tools . find ( ( tool ) => tool . toolId === 'jira_write' )
978+ assert ( jiraWrite ?. description )
979+ await expect ( page . getByText ( jiraWrite . description , { exact : true } ) ) . toBeVisible ( )
980+ await expect ( policy ) . toHaveAccessibleDescription ( 'Inherits Ask from write tools.' )
977981 await capture ( 'tool-permission-description' )
978- await page . mouse . move ( 0 , 0 )
979- await expect ( page . getByRole ( 'tooltip' ) ) . toBeHidden ( )
980- await toolDescription . focus ( )
981- await page . keyboard . press ( 'Tab' )
982- await page . keyboard . press ( 'Shift+Tab' )
983- await expect ( toolDescription ) . toBeFocused ( )
984- await expect ( page . getByRole ( 'tooltip' ) ) . toBeVisible ( )
985- await page . keyboard . press ( 'Tab' )
986- await expect ( page . getByRole ( 'tooltip' ) ) . toBeHidden ( )
982+ await policy . getByRole ( 'radio' , { name : 'Ask' , exact : true } ) . focus ( )
983+ await expect ( policy . getByRole ( 'radio' , { name : 'Ask' , exact : true } ) ) . toBeFocused ( )
987984 await page . setViewportSize ( { width : 390 , height : 844 } )
988985 await capture ( 'tool-permissions-mobile' )
989986 assert (
0 commit comments