/usr/share/grafana/public/app/plugins/datasource/tempo/_importedDependencies/test/helpers
import { waitFor } from '@testing-library/react'; import { select } from 'react-select-event'; // Used to select an option or options from a Select in unit tests export const selectOptionInTest = async ( input: HTMLElement, optionOrOptions: string | RegExp | Array<string | RegExp> ) => await waitFor(() => select(input, optionOrOptions, { container: document.body }));
.
Edit
..
Edit
createFetchResponse.ts
Edit
selectOptionInTest.ts
Edit