summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormabashian <mabashia@redhat.com>2022-03-22 14:35:37 +0100
committermabashian <mabashia@redhat.com>2022-03-22 14:35:37 +0100
commit12c36d279e8d9f98bc8042fe603ea5b3db45f236 (patch)
tree66f7cccf766d0c8e0e27413510370e0e3ff3812a
parentMerge pull request #11748 from john-westcott-iv/github_workflows_on_all_releases (diff)
downloadawx-12c36d279e8d9f98bc8042fe603ea5b3db45f236.tar.xz
awx-12c36d279e8d9f98bc8042fe603ea5b3db45f236.zip
Fix Source Control Type label in project form
-rw-r--r--awx/ui/src/screens/Project/shared/ProjectForm.js2
-rw-r--r--awx/ui/src/screens/Project/shared/ProjectForm.test.js8
2 files changed, 5 insertions, 5 deletions
diff --git a/awx/ui/src/screens/Project/shared/ProjectForm.js b/awx/ui/src/screens/Project/shared/ProjectForm.js
index 91239784c3..930cd0644a 100644
--- a/awx/ui/src/screens/Project/shared/ProjectForm.js
+++ b/awx/ui/src/screens/Project/shared/ProjectForm.js
@@ -211,7 +211,7 @@ function ProjectFormFields({
validated={
!scmTypeMeta.touched || !scmTypeMeta.error ? 'default' : 'error'
}
- label={t`Source Control Credential Type`}
+ label={t`Source Control Type`}
>
<AnsibleSelect
{...scmTypeField}
diff --git a/awx/ui/src/screens/Project/shared/ProjectForm.test.js b/awx/ui/src/screens/Project/shared/ProjectForm.test.js
index 70fcc20911..1e5a50814d 100644
--- a/awx/ui/src/screens/Project/shared/ProjectForm.test.js
+++ b/awx/ui/src/screens/Project/shared/ProjectForm.test.js
@@ -121,9 +121,9 @@ describe('<ProjectForm />', () => {
expect(wrapper.find('FormGroup[label="Name"]').length).toBe(1);
expect(wrapper.find('FormGroup[label="Description"]').length).toBe(1);
expect(wrapper.find('FormGroup[label="Organization"]').length).toBe(1);
- expect(
- wrapper.find('FormGroup[label="Source Control Credential Type"]').length
- ).toBe(1);
+ expect(wrapper.find('FormGroup[label="Source Control Type"]').length).toBe(
+ 1
+ );
expect(wrapper.find('FormGroup[label="Ansible Environment"]').length).toBe(
0
);
@@ -291,7 +291,7 @@ describe('<ProjectForm />', () => {
await waitForElement(wrapper, 'ContentLoading', (el) => el.length === 0);
const scmTypeSelect = wrapper.find(
- 'FormGroup[label="Source Control Credential Type"] FormSelect'
+ 'FormGroup[label="Source Control Type"] FormSelect'
);
await act(async () => {
scmTypeSelect.invoke('onChange')('svn', {