mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
parent
8a88caaa71
commit
bac6168e62
@ -148,7 +148,7 @@ it('should call onChange', () => {
|
|||||||
const selectEl = screen.getByLabelText('My select');
|
const selectEl = screen.getByLabelText('My select');
|
||||||
expect(selectEl).toBeInTheDocument();
|
expect(selectEl).toBeInTheDocument();
|
||||||
|
|
||||||
await selectEvent.select(selectEl, 'Option 2');
|
await selectEvent.select(selectEl, 'Option 2', { container: document.body });
|
||||||
expect(onChange).toHaveBeenCalledWith({
|
expect(onChange).toHaveBeenCalledWith({
|
||||||
label: 'Option 2',
|
label: 'Option 2',
|
||||||
value: 2,
|
value: 2,
|
||||||
|
Loading…
Reference in New Issue
Block a user