mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
Merge pull request #11934 from mabashian/5707-proj-field-label
Fix Source Control Type label in project form
This commit is contained in:
commit
7d04737a65
@ -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}
|
||||
|
||||
@ -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', {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user