import {render, screen} from 'sentry-test/reactTestingLibrary';
import {MultiSelectField} from 'sentry/components/deprecatedforms';
import Form from 'sentry/components/deprecatedforms/form';
describe('MultiSelectField', function () {
it('renders without form context', function () {
const wrapper = render(
);
expect(wrapper.container).toSnapshot();
});
it('has the right value from props', function () {
render(
);
expect(screen.getByRole('form')).toHaveFormValues({fieldName: 'a'});
});
it('renders with form context', function () {
render(
);
expect(screen.getByRole('form')).toHaveFormValues({fieldName: ['a', 'b']});
});
});