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-3.17.3 webpack/components/pf3Table/components/Table.test.js
katello-4.0.0.rc2 webpack/components/pf3Table/components/Table.test.js
katello-3.18.1.1 webpack/components/pf3Table/components/Table.test.js
katello-3.17.2 webpack/components/pf3Table/components/Table.test.js
katello-4.0.0.rc1 webpack/components/pf3Table/components/Table.test.js
katello-3.18.1 webpack/components/pf3Table/components/Table.test.js
katello-3.18.0 webpack/components/pf3Table/components/Table.test.js
katello-3.17.1 webpack/components/pf3Table/components/Table.test.js
katello-3.16.2 webpack/move_to_foreman/components/common/table/components/Table.test.js
katello-3.18.0.rc2.1 webpack/components/pf3Table/components/Table.test.js
katello-3.18.0.rc2 webpack/components/pf3Table/components/Table.test.js
katello-3.17.0 webpack/components/pf3Table/components/Table.test.js
katello-3.18.0.rc1 webpack/components/pf3Table/components/Table.test.js
katello-3.17.0.rc2.2 webpack/components/pf3Table/components/Table.test.js
katello-3.17.0.rc2.1 webpack/components/pf3Table/components/Table.test.js
katello-3.16.1.2 webpack/move_to_foreman/components/common/table/components/Table.test.js
katello-3.16.1.1 webpack/move_to_foreman/components/common/table/components/Table.test.js
katello-3.17.0.rc2 webpack/components/pf3Table/components/Table.test.js
katello-3.16.1 webpack/move_to_foreman/components/common/table/components/Table.test.js
katello-3.17.0.rc1 webpack/components/pf3Table/components/Table.test.js