Sha256: d52c8dfb4ee592c1e623285515f0ea3c5d796d8c35fe50a76917401c29b6c32e

Contents?: true

Size: 906 Bytes

Versions: 16

Compression:

Stored size: 906 Bytes

Contents

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

import ExtSelect from '../ExtSelect';

const noop = () => {};

const fixtures = {
  'should render selection field': {
    hidden: false,
    editable: false,
    viewText: '',
    selectValue: '1',
    onChange: noop,
    options: { first: 'first', second: 'second'},
    additionalData: { moreData: 'moooore' },
  },
  'should render hidden selection field': {
    hidden: true,
    editable: false,
    viewText: '',
    selectValue: null,
    onChange: noop,
    options: {},
    additionalData: {},
  },
  'should render disabled button': {
    hidden: false,
    editable: true,
    viewText: 'Awesome Text',
    selectValue: '0',
    onChange: noop,
    options: { first: 'first', second: 'second'},
    additionalData: {},
  },
};

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

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
foreman_acd-0.9.7 webpack/components/common/__tests__/ExtSelect.test.js
foreman_acd-0.9.5 webpack/components/common/__tests__/ExtSelect.test.js
foreman_acd-0.9.4 webpack/components/common/__tests__/ExtSelect.test.js
foreman_acd-0.9.3 webpack/components/common/__tests__/ExtSelect.test.js
foreman_acd-0.9.2.3 webpack/components/common/__tests__/ExtSelect.test.js
foreman_acd-0.9.2.2 webpack/components/common/__tests__/ExtSelect.test.js
foreman_acd-0.9.2.1 webpack/components/common/__tests__/ExtSelect.test.js
foreman_acd-0.9.2 webpack/components/common/__tests__/ExtSelect.test.js
foreman_acd-0.9.1 webpack/components/common/__tests__/ExtSelect.test.js
foreman_acd-0.9.0 webpack/components/common/__tests__/ExtSelect.test.js
foreman_acd-0.7.0 webpack/components/common/__tests__/ExtSelect.test.js
foreman_acd-0.6.0 webpack/components/common/__tests__/ExtSelect.test.js
foreman_acd-0.5.0 webpack/components/common/__tests__/ExtSelect.test.js
foreman_acd-0.4.0 webpack/components/common/__tests__/ExtSelect.test.js
foreman_acd-0.3.0 webpack/components/common/__tests__/ExtSelect.test.js
foreman_acd-0.2.1 webpack/components/common/__tests__/ExtSelect.test.js