Sha256: a1693708bdc5fa48eb8d9e2c96bda85ae03edf02da9f45de81bb888ae86afbcc

Contents?: true

Size: 806 Bytes

Versions: 11

Compression:

Stored size: 806 Bytes

Contents

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

import SyncSettingField from '../SyncSettingField';

import {
  associateSetting,
  forceSetting,
  filterSetting,
} from '../../__fixtures__/templateSyncSettings.fixtures';

const noop = () => () => {};

const commonFixtures = {
  resetField: noop,
  disabled: false,
  syncType: 'import',
};

const fixtures = {
  'should render setting with select choices': {
    setting: associateSetting,
    ...commonFixtures,
  },
  'should render setting with input field': {
    setting: filterSetting,
    ...commonFixtures,
  },
  'should render boolean setting as checkbox': {
    setting: forceSetting,
    ...commonFixtures,
  },
};

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

Version data entries

11 entries across 11 versions & 1 rubygems

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