mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 10:00:01 -03:30
Merge pull request #8643 from AlexSCorey/8642-InventoryonWFJTForm
Inventory Lookup on WFJT Form should not be required Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
commit
4882ca0481
@ -126,7 +126,6 @@ function WorkflowJobTemplateForm({
|
||||
onChange={value => {
|
||||
inventoryHelpers.setValue(value);
|
||||
}}
|
||||
required={!askInventoryOnLaunchField.value}
|
||||
touched={inventoryMeta.touched}
|
||||
error={inventoryMeta.error}
|
||||
/>
|
||||
|
||||
@ -264,4 +264,8 @@ describe('<WorkflowJobTemplateForm/>', () => {
|
||||
|
||||
expect(handleCancel).toBeCalled();
|
||||
});
|
||||
|
||||
test('should not show inventory field as required', () => {
|
||||
expect(wrapper.find('InventoryLookup').prop('required')).toBe(false);
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user