Merge pull request #11934 from mabashian/5707-proj-field-label

Fix Source Control Type label in project form
This commit is contained in:
Alex Corey 2022-03-23 11:32:30 -04:00 committed by GitHub
commit 7d04737a65
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -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}

View File

@ -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', {