Sha256: 8f72bf06b760fd7a01ac747b51763f4ec2aaebf5d885b635ee95df97fd89cc5f

Contents?: true

Size: 963 Bytes

Versions: 7

Compression:

Stored size: 963 Bytes

Contents

import { testComponentSnapshotsWithFixtures } from 'react-redux-test-utils';

import { ActionButton } from './ActionButton';

const fixtures = {
  'render with cancellable true props': {
    availableActions: {
      cancellable: true,
      resumable: false,
    },
    taskActions: {
      cancel: jest.fn(),
      resume: jest.fn(),
    },
    id: 'id',
    name: 'some-name',
  },
  'render with resumable true props': {
    availableActions: {
      cancellable: false,
      resumable: true,
    },
    taskActions: {
      cancel: jest.fn(),
      resume: jest.fn(),
    },
    id: 'id',
    name: 'some-name',
  },
  'render with cancellable false props': {
    availableActions: {
      cancellable: false,
      resumable: false,
    },
    taskActions: {
      cancel: jest.fn(),
      resume: jest.fn(),
    },
    id: 'id',
    name: 'some-name',
  },
};

describe('ActionButton', () =>
  testComponentSnapshotsWithFixtures(ActionButton, fixtures));

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
foreman-tasks-0.17.6 webpack/ForemanTasks/Components/common/ActionButtons/ActionButton.test.js
foreman-tasks-1.0.0 webpack/ForemanTasks/Components/common/ActionButtons/ActionButton.test.js
foreman-tasks-0.17.5 webpack/ForemanTasks/Components/common/ActionButtons/ActionButton.test.js
foreman-tasks-0.17.4 webpack/ForemanTasks/Components/common/ActionButtons/ActionButton.test.js
foreman-tasks-0.17.3 webpack/ForemanTasks/Components/common/ActionButtons/ActionButton.test.js
foreman-tasks-0.17.2 webpack/ForemanTasks/Components/common/ActionButtons/ActionButton.test.js
foreman-tasks-0.17.1 webpack/ForemanTasks/Components/common/ActionButtons/ActionButton.test.js