mirror of
https://github.com/ansible/awx.git
synced 2026-03-24 04:15:02 -02:30
update project edit test to make sure there is a local_path value set
This commit is contained in:
@@ -482,10 +482,12 @@ exports[`<ResourceAccessListItem /> initially renders succesfully 1`] = `
|
|||||||
"componentStyle": ComponentStyle {
|
"componentStyle": ComponentStyle {
|
||||||
"componentId": "Detail__DetailValue-sc-16ypsyv-1",
|
"componentId": "Detail__DetailValue-sc-16ypsyv-1",
|
||||||
"isStatic": false,
|
"isStatic": false,
|
||||||
"lastClassName": "yHlYM",
|
"lastClassName": "kCDjmZ",
|
||||||
"rules": Array [
|
"rules": Array [
|
||||||
"word-break:break-all;",
|
"word-break:break-all;",
|
||||||
[Function],
|
[Function],
|
||||||
|
" ",
|
||||||
|
[Function],
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
"displayName": "Detail__DetailValue",
|
"displayName": "Detail__DetailValue",
|
||||||
@@ -502,18 +504,18 @@ exports[`<ResourceAccessListItem /> initially renders succesfully 1`] = `
|
|||||||
fullWidth={false}
|
fullWidth={false}
|
||||||
>
|
>
|
||||||
<Component
|
<Component
|
||||||
className="Detail__DetailValue-sc-16ypsyv-1 yHlYM"
|
className="Detail__DetailValue-sc-16ypsyv-1 kCDjmZ"
|
||||||
component="dd"
|
component="dd"
|
||||||
data-cy={null}
|
data-cy={null}
|
||||||
fullWidth={false}
|
fullWidth={false}
|
||||||
>
|
>
|
||||||
<TextListItem
|
<TextListItem
|
||||||
className="Detail__DetailValue-sc-16ypsyv-1 yHlYM"
|
className="Detail__DetailValue-sc-16ypsyv-1 kCDjmZ"
|
||||||
component="dd"
|
component="dd"
|
||||||
data-cy={null}
|
data-cy={null}
|
||||||
>
|
>
|
||||||
<dd
|
<dd
|
||||||
className="Detail__DetailValue-sc-16ypsyv-1 yHlYM"
|
className="Detail__DetailValue-sc-16ypsyv-1 kCDjmZ"
|
||||||
data-cy={null}
|
data-cy={null}
|
||||||
data-pf-content={true}
|
data-pf-content={true}
|
||||||
>
|
>
|
||||||
@@ -672,10 +674,12 @@ exports[`<ResourceAccessListItem /> initially renders succesfully 1`] = `
|
|||||||
"componentStyle": ComponentStyle {
|
"componentStyle": ComponentStyle {
|
||||||
"componentId": "Detail__DetailValue-sc-16ypsyv-1",
|
"componentId": "Detail__DetailValue-sc-16ypsyv-1",
|
||||||
"isStatic": false,
|
"isStatic": false,
|
||||||
"lastClassName": "yHlYM",
|
"lastClassName": "kCDjmZ",
|
||||||
"rules": Array [
|
"rules": Array [
|
||||||
"word-break:break-all;",
|
"word-break:break-all;",
|
||||||
[Function],
|
[Function],
|
||||||
|
" ",
|
||||||
|
[Function],
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
"displayName": "Detail__DetailValue",
|
"displayName": "Detail__DetailValue",
|
||||||
@@ -692,18 +696,18 @@ exports[`<ResourceAccessListItem /> initially renders succesfully 1`] = `
|
|||||||
fullWidth={false}
|
fullWidth={false}
|
||||||
>
|
>
|
||||||
<Component
|
<Component
|
||||||
className="Detail__DetailValue-sc-16ypsyv-1 yHlYM"
|
className="Detail__DetailValue-sc-16ypsyv-1 kCDjmZ"
|
||||||
component="dd"
|
component="dd"
|
||||||
data-cy={null}
|
data-cy={null}
|
||||||
fullWidth={false}
|
fullWidth={false}
|
||||||
>
|
>
|
||||||
<TextListItem
|
<TextListItem
|
||||||
className="Detail__DetailValue-sc-16ypsyv-1 yHlYM"
|
className="Detail__DetailValue-sc-16ypsyv-1 kCDjmZ"
|
||||||
component="dd"
|
component="dd"
|
||||||
data-cy={null}
|
data-cy={null}
|
||||||
>
|
>
|
||||||
<dd
|
<dd
|
||||||
className="Detail__DetailValue-sc-16ypsyv-1 yHlYM"
|
className="Detail__DetailValue-sc-16ypsyv-1 kCDjmZ"
|
||||||
data-cy={null}
|
data-cy={null}
|
||||||
data-pf-content={true}
|
data-pf-content={true}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ describe('<ProjectEdit />', () => {
|
|||||||
scm_url: 'https://foo.bar',
|
scm_url: 'https://foo.bar',
|
||||||
scm_clean: true,
|
scm_clean: true,
|
||||||
credential: 100,
|
credential: 100,
|
||||||
local_path: '',
|
local_path: 'bar',
|
||||||
organization: 2,
|
organization: 2,
|
||||||
scm_update_on_launch: true,
|
scm_update_on_launch: true,
|
||||||
scm_update_cache_timeout: 3,
|
scm_update_cache_timeout: 3,
|
||||||
|
|||||||
@@ -40,7 +40,9 @@ function UserFormFields({ user, i18n }) {
|
|||||||
|
|
||||||
const organizationFieldArr = useField({
|
const organizationFieldArr = useField({
|
||||||
name: 'organization',
|
name: 'organization',
|
||||||
validate: !user.id ? required(i18n._(t`Select a value for this field`), i18n) : () => undefined
|
validate: !user.id
|
||||||
|
? required(i18n._(t`Select a value for this field`), i18n)
|
||||||
|
: () => undefined,
|
||||||
});
|
});
|
||||||
const organizationMeta = organizationFieldArr[1];
|
const organizationMeta = organizationFieldArr[1];
|
||||||
const organizationHelpers = organizationFieldArr[2];
|
const organizationHelpers = organizationFieldArr[2];
|
||||||
|
|||||||
Reference in New Issue
Block a user