Update Select.mdx (#41205)

* Update Select.mdx

* kick drone
This commit is contained in:
Ashley Harrison 2021-11-02 21:28:13 +00:00 committed by GitHub
parent 8a88caaa71
commit bac6168e62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,