Sha256: 7fa103493471eca6b83fd89204effc6eb2c5251d3e95cf0f02aeca08f392558e

Contents?: true

Size: 904 Bytes

Versions: 101

Compression:

Stored size: 904 Bytes

Contents

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

import Table from './Table';
import { columnsFixtures, rowsFixtures } from './TableFixtures';

jest.mock('foremanReact/components/Pagination/PaginationWrapper');

const fixtures = {
  'renders Table with emptyState': {
    columns: columnsFixtures,
    rows: [],
    emptyState: { empty: 'state' },
  },
  'renders Table with children': {
    columns: columnsFixtures,
    rows: rowsFixtures,
    children: 'some children',
  },
  'renders Table with body': {
    columns: columnsFixtures,
    rows: rowsFixtures,
    bodyMessage: 'some body message',
  },
  'renders Table with pagination': {
    columns: columnsFixtures,
    rows: rowsFixtures,
    children: 'some children',
    itemCount: 2,
    pagination: { page: 1, perPage: 20 },
  },
};

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

Version data entries

101 entries across 101 versions & 1 rubygems

Version Path
katello-4.0.2 webpack/components/pf3Table/components/Table.test.js
katello-4.1.2 webpack/components/pf3Table/components/Table.test.js
katello-3.18.4 webpack/components/pf3Table/components/Table.test.js
katello-4.1.1 webpack/components/pf3Table/components/Table.test.js
katello-4.1.0 webpack/components/pf3Table/components/Table.test.js
katello-4.0.1.2 webpack/components/pf3Table/components/Table.test.js
katello-3.18.3.1 webpack/components/pf3Table/components/Table.test.js
katello-4.1.0.rc2.2 webpack/components/pf3Table/components/Table.test.js
katello-4.1.0.rc2.1 webpack/components/pf3Table/components/Table.test.js
katello-4.0.1.1 webpack/components/pf3Table/components/Table.test.js
katello-3.18.3 webpack/components/pf3Table/components/Table.test.js
katello-4.1.0.rc2 webpack/components/pf3Table/components/Table.test.js
katello-4.0.1 webpack/components/pf3Table/components/Table.test.js
katello-4.1.0.rc1.1 webpack/components/pf3Table/components/Table.test.js
katello-4.1.0.rc1 webpack/components/pf3Table/components/Table.test.js
katello-4.0.0 webpack/components/pf3Table/components/Table.test.js
katello-4.0.0.rc3.1 webpack/components/pf3Table/components/Table.test.js
katello-4.0.0.rc3 webpack/components/pf3Table/components/Table.test.js
katello-3.18.2.1 webpack/components/pf3Table/components/Table.test.js
katello-3.18.2 webpack/components/pf3Table/components/Table.test.js