diff --git a/packages/grafana-ui/src/components/Combobox/Combobox.test.tsx b/packages/grafana-ui/src/components/Combobox/Combobox.test.tsx index 7ae3f1c5ec5..e99a2568faa 100644 --- a/packages/grafana-ui/src/components/Combobox/Combobox.test.tsx +++ b/packages/grafana-ui/src/components/Combobox/Combobox.test.tsx @@ -2,6 +2,8 @@ import { act, render, screen, fireEvent } from '@testing-library/react'; import userEvent from '@testing-library/user-event'; import React from 'react'; +import { Field } from '../Forms/Field'; + import { Combobox } from './Combobox'; import { ComboboxOption } from './types'; @@ -491,4 +493,42 @@ describe('Combobox', () => { }); }); }); + + describe('with RTL selectors', () => { + it('can be selected by label with HTML