Submit
Path:
~
/
/
usr
/
share
/
grafana
/
public
/
app
/
plugins
/
datasource
/
tempo
/
_importedDependencies
/
test
/
helpers
/
File Content:
selectOptionInTest.ts
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 }));
Submit
FILE
FOLDER
INFO
Name
Size
Permission
Action
createFetchResponse.ts
387 bytes
0644
selectOptionInTest.ts
375 bytes
0644
N4ST4R_ID | Naxtarrr