Sha256: d30e9b832d6ad46242d67bd6564d36b0b81f67e0fcbec6222eb4a8a7e7e95a7d

Contents?: true

Size: 908 Bytes

Versions: 2

Compression:

Stored size: 908 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

2 entries across 2 versions & 1 rubygems

Version Path
foreman_acd-0.11.0 webpack/components/common/__tests__/ExtSelect.test.js
foreman_acd-0.10.0 webpack/components/common/__tests__/ExtSelect.test.js