Sha256: 864d6be19e5a2cce040dac4af99c66ead6034d207c1eff1c12d25d0dfdb62e69

Contents?: true

Size: 688 Bytes

Versions: 2

Compression:

Stored size: 688 Bytes

Contents

import { testComponentSnapshotsWithFixtures } from '@theforeman/test';
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

2 entries across 2 versions & 1 rubygems

Version Path
foreman-tasks-1.1.0 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTablePage.test.js
foreman-tasks-1.0.1 webpack/ForemanTasks/Components/TasksTable/__tests__/TasksTablePage.test.js