mirror of
https://github.com/ansible/awx.git
synced 2026-02-02 01:58:09 -03:30
Basic Ansible Environment Select Component
- Component conditionally renders based on # of virtual environments. - User can add an Organization and associate it with a virtual environment.
This commit is contained in:
@@ -11,18 +11,6 @@ describe('<OrganizationAdd />', () => {
|
||||
/>
|
||||
);
|
||||
});
|
||||
test('calls "onSelectChange" on dropdown select change', () => {
|
||||
const spy = jest.spyOn(OrganizationAdd.prototype, 'onSelectChange');
|
||||
const wrapper = mount(
|
||||
<OrganizationAdd
|
||||
match={{ path: '/organizations/add', url: '/organizations/add' }}
|
||||
location={{ search: '', pathname: '/organizations/add' }}
|
||||
/>
|
||||
);
|
||||
expect(spy).not.toHaveBeenCalled();
|
||||
wrapper.find('select').simulate('change');
|
||||
expect(spy).toHaveBeenCalled();
|
||||
});
|
||||
test('calls "handleChange" when input values change', () => {
|
||||
const spy = jest.spyOn(OrganizationAdd.prototype, 'handleChange');
|
||||
const wrapper = mount(
|
||||
|
||||
Reference in New Issue
Block a user