Sha256: 9210a4356b09a19617a9738396280b071925b613e50015c95b022d7947821871

Contents?: true

Size: 674 Bytes

Versions: 59

Compression:

Stored size: 674 Bytes

Contents

import { testComponentSnapshotsWithFixtures } from '@theforeman/test';
import { STATUS } from 'foremanReact/constants';
import Task from '../Task';

const fixtures = {
  'render with minimal Props': {
    id: 'test',
    taskReloadStart: jest.fn(),
    taskProgressToggle: jest.fn(),
  },
  'render with some Props': {
    id: 'test',
    state: 'paused',
    hasSubTasks: true,
    dynflowEnableConsole: true,
    parentTask: 'parent-id',
    taskReload: true,
    canEdit: true,
    status: STATUS.RESOLVED,
    taskProgressToggle: jest.fn(),
    taskReloadStart: jest.fn(),
  },
};

describe('Task rendering', () =>
  testComponentSnapshotsWithFixtures(Task, fixtures));

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
foreman-tasks-5.2.0 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js
foreman-tasks-5.1.1 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js
foreman-tasks-5.1.0 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js
foreman-tasks-4.1.5 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js
foreman-tasks-4.1.4 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js
foreman-tasks-4.1.3 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js
foreman-tasks-3.0.6 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js
foreman-tasks-5.0.0 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js
foreman-tasks-4.1.2 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js
foreman-tasks-4.1.1 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js
foreman-tasks-4.0.1 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js
foreman-tasks-4.1.0 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js
foreman-tasks-3.0.5 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js
foreman-tasks-4.0.0 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js
foreman-tasks-3.0.4 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js
foreman-tasks-3.0.3 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js
foreman-tasks-3.0.2 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js
foreman-tasks-3.0.1 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js
foreman-tasks-3.0.0 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js