From 12c36d279e8d9f98bc8042fe603ea5b3db45f236 Mon Sep 17 00:00:00 2001 From: mabashian Date: Tue, 22 Mar 2022 09:35:37 -0400 Subject: [PATCH] Fix Source Control Type label in project form --- awx/ui/src/screens/Project/shared/ProjectForm.js | 2 +- awx/ui/src/screens/Project/shared/ProjectForm.test.js | 8 ++++---- 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`} > ', () => { 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('', () => { 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', {