Sha256: 55003690d07ff5328257baebe2f0fc37d82187f98ade149c55dc4f374e76b9d9

Contents?: true

Size: 881 Bytes

Versions: 3

Compression:

Stored size: 881 Bytes

Contents

import { testComponentSnapshotsWithFixtures } from '@theforeman/test';

import RunningSteps from '../RunningSteps';

const minProps = {
  id: 'task-id1',
  taskReload: true,
  cancelStep: jest.fn(),
  taskProgressToggle: jest.fn(),
};
const fixtures = {
  'render with min Props': minProps,
  'render with Props': {
    ...minProps,
    executionPlan: {
      state: 'paused',
      cancellable: false,
    },
    runningSteps: [
      {
        cancellable: false,
        id: 1,
        action_class: 'test',
        state: 'paused',
        input:
          '{"locale"=>"en",\n "current_request_id"=>nil,\n "current_user_id"=>4,\n "current_organization_id"=>nil,\n "current_location_id"=>nil}\n',
        output: '{}\n',
      },
    ],
  },
};

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
foreman-tasks-2.0.3 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/RunningSteps.test.js
foreman-tasks-2.0.2 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/RunningSteps.test.js
foreman-tasks-2.0.1 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/RunningSteps.test.js