diff --git a/awx/ui_next/src/screens/Template/shared/WorkflowJobTemplateForm.jsx b/awx/ui_next/src/screens/Template/shared/WorkflowJobTemplateForm.jsx index e3b3e1a817..fd15c92e28 100644 --- a/awx/ui_next/src/screens/Template/shared/WorkflowJobTemplateForm.jsx +++ b/awx/ui_next/src/screens/Template/shared/WorkflowJobTemplateForm.jsx @@ -126,7 +126,6 @@ function WorkflowJobTemplateForm({ onChange={value => { inventoryHelpers.setValue(value); }} - required={!askInventoryOnLaunchField.value} touched={inventoryMeta.touched} error={inventoryMeta.error} /> diff --git a/awx/ui_next/src/screens/Template/shared/WorkflowJobTemplateForm.test.jsx b/awx/ui_next/src/screens/Template/shared/WorkflowJobTemplateForm.test.jsx index 68c03637e2..c9bef838b8 100644 --- a/awx/ui_next/src/screens/Template/shared/WorkflowJobTemplateForm.test.jsx +++ b/awx/ui_next/src/screens/Template/shared/WorkflowJobTemplateForm.test.jsx @@ -264,4 +264,8 @@ describe('', () => { expect(handleCancel).toBeCalled(); }); + + test('should not show inventory field as required', () => { + expect(wrapper.find('InventoryLookup').prop('required')).toBe(false); + }); });