Sha256: 7c2e4112cbb8ee02cacd2eb833da2d8a847b194b8da9e7341c9b1e83a1a0b04c

Contents?: true

Size: 772 Bytes

Versions: 10

Compression:

Stored size: 772 Bytes

Contents

import { testComponentSnapshotsWithFixtures } from '@theforeman/test';

import SyncSettingFields from '../SyncSettingFields';

import {
  importSettings,
  exportSettings,
} from '../../__fixtures__/templateSyncSettings.fixtures';

const noop = () => {};

const commonFixtures = {
  importSettings,
  exportSettings,
  resetField: noop,
  formProps: { isSubmitting: false },
  disabled: false,
};

const fixtures = {
  'should show export settings': {
    syncType: 'export',
    validationData: {},
    ...commonFixtures,
  },
  'should show import settings': {
    syncType: 'import',
    validationData: { repo: ['http', 'https'] },
    ...commonFixtures,
  },
};

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
foreman_templates-10.0.2 webpack/components/NewTemplateSync/components/__tests__/SyncSettingFields.test.js
foreman_templates-10.0.1 webpack/components/NewTemplateSync/components/__tests__/SyncSettingFields.test.js
foreman_templates-10.0.0 webpack/components/NewTemplateSync/components/__tests__/SyncSettingFields.test.js
foreman_templates-9.5.1 webpack/components/NewTemplateSync/components/__tests__/SyncSettingFields.test.js
foreman_templates-9.5.0 webpack/components/NewTemplateSync/components/__tests__/SyncSettingFields.test.js
foreman_templates-9.3.3 webpack/components/NewTemplateSync/components/__tests__/SyncSettingFields.test.js
foreman_templates-9.3.2 webpack/components/NewTemplateSync/components/__tests__/SyncSettingFields.test.js
foreman_templates-9.3.1 webpack/components/NewTemplateSync/components/__tests__/SyncSettingFields.test.js
foreman_templates-9.4.0 webpack/components/NewTemplateSync/components/__tests__/SyncSettingFields.test.js
foreman_templates-9.3.0 webpack/components/NewTemplateSync/components/__tests__/SyncSettingFields.test.js