Sha256: ccbdedecef3f72d40e03028ace89e8630edc86a1b0e418cb38bface2a5ecf9c9

Contents?: true

Size: 1.12 KB

Versions: 11

Compression:

Stored size: 1.12 KB

Contents

import { testComponentSnapshotsWithFixtures } from 'react-redux-test-utils';

import AnsiblePlaybookSelector from '../AnsiblePlaybookSelector';

const noop = () => {};

const fixtures = {
  'should render ansible playbook selector': {
    label: 'myLabel',
    hidden: false,
    editable: true,
    viewText: 'myText',
    selectValue: '1',
    onChange: noop,
    options: { first: 'first', second: 'second'},
    additionalData: { moreData: 'moooore' },
  },
  'should render hidden ansible playbook selector': {
    label: 'myLabel',
    hidden: true,
    editable: true,
    viewText: 'myText',
    selectValue: '1',
    onChange: noop,
    options: { first: 'first', second: 'second'},
    additionalData: { moreData: 'moooore' },
  },
  'should render not editable ansible playbook selector': {
    label: 'myLabel',
    hidden: false,
    editable: false,
    viewText: 'myText',
    selectValue: '1',
    onChange: noop,
    options: { first: 'first', second: 'second'},
    additionalData: { moreData: 'moooore' },
  },
};

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
foreman_acd-0.9.7 webpack/components/ApplicationDefinition/components/__tests__/AnsiblePlaybookSelector.test.js
foreman_acd-0.9.5 webpack/components/ApplicationDefinition/components/__tests__/AnsiblePlaybookSelector.test.js
foreman_acd-0.9.4 webpack/components/ApplicationDefinition/components/__tests__/AnsiblePlaybookSelector.test.js
foreman_acd-0.9.3 webpack/components/ApplicationDefinition/components/__tests__/AnsiblePlaybookSelector.test.js
foreman_acd-0.9.2.3 webpack/components/ApplicationDefinition/components/__tests__/AnsiblePlaybookSelector.test.js
foreman_acd-0.9.2.2 webpack/components/ApplicationDefinition/components/__tests__/AnsiblePlaybookSelector.test.js
foreman_acd-0.9.2.1 webpack/components/ApplicationDefinition/components/__tests__/AnsiblePlaybookSelector.test.js
foreman_acd-0.9.2 webpack/components/ApplicationDefinition/components/__tests__/AnsiblePlaybookSelector.test.js
foreman_acd-0.9.1 webpack/components/ApplicationDefinition/components/__tests__/AnsiblePlaybookSelector.test.js
foreman_acd-0.9.0 webpack/components/ApplicationDefinition/components/__tests__/AnsiblePlaybookSelector.test.js
foreman_acd-0.7.0 webpack/components/ApplicationDefinition/components/__tests__/AnsiblePlaybookSelector.test.js