Fix Source Control Type label in project form

This commit is contained in:
mabashian
2022-03-22 09:35:37 -04:00
parent afbd9f04d7
commit 12c36d279e
2 changed files with 5 additions and 5 deletions

View File

@@ -211,7 +211,7 @@ function ProjectFormFields({
validated={ validated={
!scmTypeMeta.touched || !scmTypeMeta.error ? 'default' : 'error' !scmTypeMeta.touched || !scmTypeMeta.error ? 'default' : 'error'
} }
label={t`Source Control Credential Type`} label={t`Source Control Type`}
> >
<AnsibleSelect <AnsibleSelect
{...scmTypeField} {...scmTypeField}

View File

@@ -121,9 +121,9 @@ describe('<ProjectForm />', () => {
expect(wrapper.find('FormGroup[label="Name"]').length).toBe(1); expect(wrapper.find('FormGroup[label="Name"]').length).toBe(1);
expect(wrapper.find('FormGroup[label="Description"]').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="Organization"]').length).toBe(1);
expect( expect(wrapper.find('FormGroup[label="Source Control Type"]').length).toBe(
wrapper.find('FormGroup[label="Source Control Credential Type"]').length 1
).toBe(1); );
expect(wrapper.find('FormGroup[label="Ansible Environment"]').length).toBe( expect(wrapper.find('FormGroup[label="Ansible Environment"]').length).toBe(
0 0
); );
@@ -291,7 +291,7 @@ describe('<ProjectForm />', () => {
await waitForElement(wrapper, 'ContentLoading', (el) => el.length === 0); await waitForElement(wrapper, 'ContentLoading', (el) => el.length === 0);
const scmTypeSelect = wrapper.find( const scmTypeSelect = wrapper.find(
'FormGroup[label="Source Control Credential Type"] FormSelect' 'FormGroup[label="Source Control Type"] FormSelect'
); );
await act(async () => { await act(async () => {
scmTypeSelect.invoke('onChange')('svn', { scmTypeSelect.invoke('onChange')('svn', {