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-10.0.1 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js
foreman-tasks-10.0.0 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js
foreman-tasks-9.2.3 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js
foreman-tasks-9.2.2 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js
foreman-tasks-9.2.1 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js
foreman-tasks-9.2.0 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js
foreman-tasks-9.1.1 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js
foreman-tasks-9.0.4 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js
foreman-tasks-9.1.0 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js
foreman-tasks-9.0.2 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js
foreman-tasks-9.0.1 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js
foreman-tasks-8.3.3 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js
foreman-tasks-9.0.0 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js
foreman-tasks-8.2.1 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js
foreman-tasks-8.1.4 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js
foreman-tasks-8.3.2 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js
foreman-tasks-8.3.1 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js
foreman-tasks-8.1.3 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js
foreman-tasks-8.3.0 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js
foreman-tasks-8.2.0 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Task.test.js