/usr/share/grafana/public/app/plugins/datasource/azuremonitor/utils
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
common.test.ts
Edit
common.ts
Edit
messageFromError.test.ts
Edit
messageFromError.ts
Edit
migrateAnnotation.test.ts
Edit
migrateAnnotation.ts
Edit
migrateQuery.test.ts
Edit
migrateQuery.ts
Edit
testUtils.ts
Edit
useAsyncState.test.ts
Edit
useAsyncState.ts
Edit
useLastError.test.ts
Edit
useLastError.ts
Edit