diff --git a/x-pack/platform/plugins/shared/search_inference_endpoints/public/components/settings/add_model_popover.test.tsx b/x-pack/platform/plugins/shared/search_inference_endpoints/public/components/settings/add_model_popover.test.tsx index 3943d7034cffd..a4212b8cc2da4 100644 --- a/x-pack/platform/plugins/shared/search_inference_endpoints/public/components/settings/add_model_popover.test.tsx +++ b/x-pack/platform/plugins/shared/search_inference_endpoints/public/components/settings/add_model_popover.test.tsx @@ -233,4 +233,18 @@ describe('AddModelPopover', () => { expect(screen.getByTestId('add-model-search')).toBeInTheDocument(); }); + + it('has an accessible name for the model selection popover', () => { + render( + + + + ); + + fireEvent.click(screen.getByTestId('add-model-button')); + + // Verify the dialog has an aria-label for screen readers + const dialog = screen.getByRole('dialog', { name: 'Model selection' }); + expect(dialog).toBeInTheDocument(); + }); }); diff --git a/x-pack/platform/plugins/shared/search_inference_endpoints/public/components/settings/add_model_popover.tsx b/x-pack/platform/plugins/shared/search_inference_endpoints/public/components/settings/add_model_popover.tsx index 196a5ab5d98d0..9c9654633e14f 100644 --- a/x-pack/platform/plugins/shared/search_inference_endpoints/public/components/settings/add_model_popover.tsx +++ b/x-pack/platform/plugins/shared/search_inference_endpoints/public/components/settings/add_model_popover.tsx @@ -90,6 +90,9 @@ export const AddModelPopover: React.FC = ({ return (