mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 17:42:12 +08:00

* Set up frontend linting for Azure - Fix final frontend import - Fix other lint issues * Add Azure Monitor to backend linting * Remove featuremgmt dependency * Add intervalv2 to list of disallowed imports * Remove config dependency - Replace with function from azure-sdk * Remove util dependency * Duplicate interval functionality from core * Add required backend wrappers * Update frontend * Add testing helper * Add missing package * Bump minimum grafana dependency * Fix dependency * Regen cue * Fix lint * Update expected response file * Update import and dependency
9 lines
375 B
TypeScript
9 lines
375 B
TypeScript
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 }));
|