Sha256: f4ea0f46841f433d276e15ccf42f7cac2eb77c5df12477c95ac6f161ed4f92ab

Contents?: true

Size: 694 Bytes

Versions: 7

Compression:

Stored size: 694 Bytes

Contents

import { testComponentSnapshotsWithFixtures } from 'react-redux-test-utils';
import TasksTablePage from '../TasksTablePage';
import { minProps } from './TasksTable.fixtures';

const fixtures = {
  'render with minimal props': minProps,

  'render with Breadcrubs': {
    ...minProps,
    getBreadcrumbs: () => ({
      breadcrumbItems: [
        { caption: 'Tasks', url: `/foreman_tasks/tasks` },
        {
          caption: 'action Name',
          url: `/foreman_tasks/tasks/someid`,
        },
        { caption: 'Sub tasks' },
      ],
    }),
  },
};

describe('TasksTablePage', () => {
  describe('rendering', () =>
    testComponentSnapshotsWithFixtures(TasksTablePage, fixtures));
});

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
foreman-tasks-0.17.6 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTablePage.test.js
foreman-tasks-1.0.0 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTablePage.test.js
foreman-tasks-0.17.5 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTablePage.test.js
foreman-tasks-0.17.4 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTablePage.test.js
foreman-tasks-0.17.3 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTablePage.test.js
foreman-tasks-0.17.2 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTablePage.test.js
foreman-tasks-0.17.1 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTablePage.test.js