Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,506 changes: 77 additions & 1,429 deletions app/javascript/spec/action-form/__snapshots__/action-form.spec.js.snap

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,6 @@ exports[`Add/remove security groups form component should remove security group
<FormControls
Button={[Function]}
ButtonGroup={[Function]}
FormSpy={[Function]}
buttonOrder={
Array [
"submit",
Expand All @@ -792,30 +791,6 @@ exports[`Add/remove security groups form component should remove security group
canReset={false}
cancelLabel="Cancel"
disableSubmit={true}
formFields={
Array [
<SingleField
component="select"
id="security_group"
includeEmpty={true}
label="Security Group"
name="security_group"
options={
Array [
Object {
"label": "default",
"value": "default",
},
]
}
placeholder="<Choose>"
/>,
<SingleField
component="spy-field"
name="spy-field"
/>,
]
}
formSpyProps={
Object {
"active": undefined,
Expand Down Expand Up @@ -881,31 +856,6 @@ exports[`Add/remove security groups form component should remove security group
onCancel={[Function]}
onReset={[Function]}
resetLabel="Reset"
schema={
Object {
"fields": Array [
Object {
"component": "select",
"id": "security_group",
"includeEmpty": true,
"label": "Security Group",
"name": "security_group",
"options": Array [
Object {
"label": "default",
"value": "default",
},
],
"placeholder": "<Choose>",
},
Object {
"component": "spy-field",
"initialize": undefined,
"name": "spy-field",
},
],
}
}
submitLabel="Save"
>
<ButtonGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1222,7 +1222,6 @@ exports[`Ansible Credential Form Component should render adding a new credential
<FormControls
Button={[Function]}
ButtonGroup={[Function]}
FormSpy={[Function]}
buttonOrder={
Array [
"submit",
Expand All @@ -1233,55 +1232,6 @@ exports[`Ansible Credential Form Component should render adding a new credential
canReset={false}
cancelLabel="Cancel"
disableSubmit={true}
formFields={
Array [
<SingleField
component="text-field"
hideField={true}
label="manager_resource"
name="manager_resource"
value=""
/>,
<SingleField
component="text-field"
id="name"
isRequired={true}
label="Name"
maxLength={128}
name="name"
validate={
Array [
Object {
"type": "required",
},
]
}
/>,
<SingleField
component="select"
id="type"
includeEmpty={true}
isDisabled={false}
isRequired={true}
label="Credential type"
loadOptions={[Function]}
name="type"
onChange={[Function]}
placeholder="<Choose>"
validate={
Array [
Object {
"type": "required",
},
]
}
/>,
<SingleField
component="spy-field"
name="spy-field"
/>,
]
}
formSpyProps={
Object {
"active": undefined,
Expand Down Expand Up @@ -1372,54 +1322,6 @@ exports[`Ansible Credential Form Component should render adding a new credential
onCancel={[Function]}
onReset={[Function]}
resetLabel="Reset"
schema={
Object {
"fields": Array [
Object {
"component": "text-field",
"hideField": true,
"label": "manager_resource",
"name": "manager_resource",
"value": "",
},
Object {
"component": "text-field",
"id": "name",
"isRequired": true,
"label": "Name",
"maxLength": 128,
"name": "name",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"id": "type",
"includeEmpty": true,
"isDisabled": false,
"isRequired": true,
"label": "Credential type",
"loadOptions": [Function],
"name": "type",
"onChange": [Function],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "spy-field",
"initialize": undefined,
"name": "spy-field",
},
],
}
}
submitLabel="Add"
>
<ButtonGroup>
Expand Down Expand Up @@ -2925,7 +2827,6 @@ exports[`Ansible Credential Form Component should render editing a credential 1`
<FormControls
Button={[Function]}
ButtonGroup={[Function]}
FormSpy={[Function]}
buttonOrder={
Array [
"submit",
Expand All @@ -2936,63 +2837,6 @@ exports[`Ansible Credential Form Component should render editing a credential 1`
canReset={true}
cancelLabel="Cancel"
disableSubmit={true}
formFields={
Array [
<SingleField
component="text-field"
hideField={true}
label="manager_resource"
name="manager_resource"
value=""
/>,
<SingleField
component="text-field"
id="name"
isRequired={true}
label="Name"
maxLength={128}
name="name"
validate={
Array [
Object {
"type": "required",
},
]
}
/>,
<SingleField
component="select"
id="type"
includeEmpty={true}
isDisabled={true}
isRequired={true}
label="Credential type"
loadOptions={[Function]}
name="type"
onChange={[Function]}
placeholder="<Choose>"
validate={
Array [
Object {
"type": "required",
},
]
}
/>,
<SingleField
component="text-field"
helperText="AWS Access Key for this credential"
id="userid"
isRequired={true}
label="Access Key"
name="userid"
/>,
<SingleField
component="spy-field"
name="spy-field"
/>,
]
}
formSpyProps={
Object {
"active": undefined,
Expand Down Expand Up @@ -3084,62 +2928,6 @@ exports[`Ansible Credential Form Component should render editing a credential 1`
onCancel={[Function]}
onReset={[Function]}
resetLabel="Reset"
schema={
Object {
"fields": Array [
Object {
"component": "text-field",
"hideField": true,
"label": "manager_resource",
"name": "manager_resource",
"value": "",
},
Object {
"component": "text-field",
"id": "name",
"isRequired": true,
"label": "Name",
"maxLength": 128,
"name": "name",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"id": "type",
"includeEmpty": true,
"isDisabled": true,
"isRequired": true,
"label": "Credential type",
"loadOptions": [Function],
"name": "type",
"onChange": [Function],
"placeholder": "<Choose>",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "text-field",
"helperText": "AWS Access Key for this credential",
"id": "userid",
"isRequired": true,
"label": "Access Key",
"name": "userid",
},
Object {
"component": "spy-field",
"initialize": undefined,
"name": "spy-field",
},
],
}
}
submitLabel="Save"
>
<ButtonGroup>
Expand Down
Loading