From 911c99f325df8a2a9a894460741e9ca1f147477e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laura=20Fern=C3=A1ndez?= Date: Tue, 11 Mar 2025 15:58:09 +0100 Subject: [PATCH] Field: Use `Combobox` instead of `Select` in test (#101928) --- packages/grafana-ui/src/components/Forms/Field.test.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/grafana-ui/src/components/Forms/Field.test.tsx b/packages/grafana-ui/src/components/Forms/Field.test.tsx index 768bc3095cf..24d47c23bf1 100644 --- a/packages/grafana-ui/src/components/Forms/Field.test.tsx +++ b/packages/grafana-ui/src/components/Forms/Field.test.tsx @@ -1,7 +1,7 @@ import { render, screen } from '@testing-library/react'; +import { Combobox } from '../Combobox/Combobox'; import { Input } from '../Input/Input'; -import { Select } from '../Select/Select'; import { Field } from './Field'; @@ -27,9 +27,13 @@ describe('Field', () => { }); it('renders with the inputId of its children', () => { + const comboboxOptions = [ + { label: 'Option 1', value: 'option-1' }, + { label: 'Option 2', value: 'option-2' }, + ]; render( -