app/javascript/spec/cloud-tenant-form/__snapshots__/cloud-tenant-form.spec.js.snap
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Cloud tenant form component should render adding form variant 1`] = `
<Grid>
<Connect(MiqFormRenderer)
buttonsLabels={
Object {
"submitLabel": "Add",
}
}
canReset={false}
initialValues={Object {}}
onCancel={[Function]}
onSubmit={[Function]}
schema={
Object {
"fields": Array [
Object {
"component": "text-field",
"id": "name",
"isRequired": true,
"label": "Tenant Name",
"maxLength": 128,
"name": "name",
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"id": "ems_id",
"includeEmpty": true,
"isRequired": true,
"label": "Cloud Provider",
"loadOptions": [Function],
"name": "ems_id",
"onChange": [Function],
"validate": Array [
Object {
"type": "required",
},
],
},
Object {
"component": "select",
"condition": Object {
"isNotEmpty": true,
"when": "ems_id",
},
"id": "parent_id",
"key": "parent_id-undefined",
"label": "Parent Cloud Tenant",
"loadOptions": [Function],
"name": "parent_id",
},
],
}
}
/>
</Grid>
`;
exports[`Cloud tenant form component should render editing form variant 1`] = `
<Provider
store={
Object {
"asyncReducers": Object {
"FormButtons": [Function],
"miqCustomTabReducer": [Function],
"notificationReducer": [Function],
},
"dispatch": [Function],
"getState": [Function],
"injectReducers": [Function],
"replaceReducer": [Function],
"subscribe": [Function],
Symbol(observable): [Function],
}
}
>
<CloudTenantForm
recordId="1"
/>
</Provider>
`;