From 5d0b00176411620b628a8b9c371816855804e797 Mon Sep 17 00:00:00 2001 From: Marliana Lara Date: Mon, 19 Oct 2020 17:21:40 -0400 Subject: [PATCH] Fix prop type errors in unit tests --- .../AdHocCommands/AdHocCommandsWizard.test.jsx | 6 +++++- awx/ui_next/src/components/HostForm/HostForm.jsx | 1 + .../screens/Template/shared/JobTemplateForm.jsx | 14 ++++++++++---- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/awx/ui_next/src/components/AdHocCommands/AdHocCommandsWizard.test.jsx b/awx/ui_next/src/components/AdHocCommands/AdHocCommandsWizard.test.jsx index d38aa28bbc..fa2575fd8b 100644 --- a/awx/ui_next/src/components/AdHocCommands/AdHocCommandsWizard.test.jsx +++ b/awx/ui_next/src/components/AdHocCommands/AdHocCommandsWizard.test.jsx @@ -17,6 +17,10 @@ const verbosityOptions = [ { value: '3', key: '3', label: '3 (Debug)' }, { value: '4', key: '4', label: '4 (Connection Debug)' }, ]; +const moduleOptions = [ + ['command', 'command'], + ['shell', 'shell'], +]; const adHocItems = [ { name: 'Inventory 1' }, { name: 'Inventory 2' }, @@ -31,7 +35,7 @@ describe('', () => { {}} credentialTypeId={1} diff --git a/awx/ui_next/src/components/HostForm/HostForm.jsx b/awx/ui_next/src/components/HostForm/HostForm.jsx index 65f9508e7f..402580301f 100644 --- a/awx/ui_next/src/components/HostForm/HostForm.jsx +++ b/awx/ui_next/src/components/HostForm/HostForm.jsx @@ -41,6 +41,7 @@ const InventoryLookupField = withI18n()(({ i18n, host }) => { helperTextInvalid={inventoryMeta.error} > inventoryHelpers.setTouched()} tooltip={i18n._(t`Select the inventory that this host will belong to.`)} diff --git a/awx/ui_next/src/screens/Template/shared/JobTemplateForm.jsx b/awx/ui_next/src/screens/Template/shared/JobTemplateForm.jsx index 64759929b7..794eefa51d 100644 --- a/awx/ui_next/src/screens/Template/shared/JobTemplateForm.jsx +++ b/awx/ui_next/src/screens/Template/shared/JobTemplateForm.jsx @@ -274,7 +274,8 @@ function JobTemplateForm({ promptId="template-ask-scm-branch-on-launch" promptName="ask_scm_branch_on_launch" tooltip={i18n._( - t`Select a branch for the job template. This branch is applied to all job template nodes that prompt for a branch.` + t`Select a branch for the job template. This branch is applied to + all job template nodes that prompt for a branch.` )} > @@ -439,7 +443,7 @@ function JobTemplateForm({ promptName="ask_diff_mode_on_launch" tooltip={i18n._(t`If enabled, show the changes made by Ansible tasks, where supported. This is equivalent - to Ansible’s --diff mode.`)} + to Ansible's --diff mode.`)} >