ManageIQ/manageiq-ui-classic

View on GitHub
app/javascript/spec/auth-key-pair-cloud/__snapshots__/ansible-credentials-form.spec.js.snap

Summary

Maintainability
Test Coverage
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`Add testcases for creating new auth key pair should render a auth key pair form 1`] = `
<Connect(MiqFormRenderer)
  buttonsLabels={
    Object {
      "submitLabel": "Add",
    }
  }
  onCancel={[Function]}
  onSubmit={[Function]}
  schema={
    Object {
      "fields": Array [
        Object {
          "component": "text-field",
          "id": "name",
          "isRequired": true,
          "label": "Name",
          "name": "name",
          "validate": Array [
            Object {
              "type": "required",
            },
          ],
        },
        Object {
          "component": "textarea",
          "id": "public_key",
          "label": "Public Key",
          "name": "public_key",
          "rows": 10,
        },
        Object {
          "component": "select",
          "id": "ems_id",
          "includeEmpty": true,
          "isRequired": true,
          "label": "Provider",
          "loadOptions": [Function],
          "name": "ems_id",
          "placeholder": "<Choose>",
          "validate": Array [
            Object {
              "type": "required",
            },
          ],
        },
      ],
    }
  }
/>
`;