mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05:00
@@ -148,7 +148,7 @@ it('should call onChange', () => {
|
||||
const selectEl = screen.getByLabelText('My select');
|
||||
expect(selectEl).toBeInTheDocument();
|
||||
|
||||
await selectEvent.select(selectEl, 'Option 2');
|
||||
await selectEvent.select(selectEl, 'Option 2', { container: document.body });
|
||||
expect(onChange).toHaveBeenCalledWith({
|
||||
label: 'Option 2',
|
||||
value: 2,
|
||||
|
||||
Reference in New Issue
Block a user