Sha256: 1e5322e7ca4d0f851ddc7c0e863ea89d06ed4a9a663a5d5c01c3f70544de035f

Contents?: true

Size: 669 Bytes

Versions: 85

Compression:

Stored size: 669 Bytes

Contents

import { testComponentSnapshotsWithFixtures } from '@theforeman/test';
import { CloudConnectorButton } from '../CloudConnectorButton';
import { CONNECTOR_STATUS } from '../CloudConnectorConstants';

const fixtures = {
  'render no cloud connector': {
    status: CONNECTOR_STATUS.NOT_RESOLVED,
    onClick: jest.fn(),
  },
  'render resolved cloud connector': {
    status: CONNECTOR_STATUS.RESOLVED,
    onClick: jest.fn(),
  },
  'render pending connector': {
    jobLink: '/job-link',
    status: CONNECTOR_STATUS.PENDING,
    onClick: jest.fn(),
  },
};

describe('CloudConnectorButton', () =>
  testComponentSnapshotsWithFixtures(CloudConnectorButton, fixtures));

Version data entries

85 entries across 85 versions & 1 rubygems

Version Path
foreman_rh_cloud-5.0.28 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/CloudConnectorButton.test.js
foreman_rh_cloud-4.0.27 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/CloudConnectorButton.test.js
foreman_rh_cloud-3.0.26 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/CloudConnectorButton.test.js
foreman_rh_cloud-4.0.26 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/CloudConnectorButton.test.js
foreman_rh_cloud-4.0.25.1 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/CloudConnectorButton.test.js
foreman_rh_cloud-3.0.25 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/CloudConnectorButton.test.js
foreman_rh_cloud-4.0.25 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/CloudConnectorButton.test.js
foreman_rh_cloud-3.0.24.1 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/CloudConnectorButton.test.js
foreman_rh_cloud-4.0.24.1 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/CloudConnectorButton.test.js
foreman_rh_cloud-3.0.24 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/CloudConnectorButton.test.js
foreman_rh_cloud-4.0.24 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/CloudConnectorButton.test.js
foreman_rh_cloud-3.0.23 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/CloudConnectorButton.test.js
foreman_rh_cloud-4.0.23 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/CloudConnectorButton.test.js
foreman_rh_cloud-3.0.22 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/CloudConnectorButton.test.js
foreman_rh_cloud-4.0.22 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/CloudConnectorButton.test.js
foreman_rh_cloud-4.0.21.1 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/CloudConnectorButton.test.js
foreman_rh_cloud-3.0.21.1 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/CloudConnectorButton.test.js
foreman_rh_cloud-3.0.21 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/CloudConnectorButton.test.js
foreman_rh_cloud-3.0.20 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/CloudConnectorButton.test.js
foreman_rh_cloud-3.0.19 webpack/ForemanInventoryUpload/Components/PageHeader/components/CloudConnectorButton/__tests__/CloudConnectorButton.test.js