Sha256: 6ee34f310af60659c7d3998e0b9f55e2df126f2cb72d3f4407d46b023afb693f

Contents?: true

Size: 878 Bytes

Versions: 60

Compression:

Stored size: 878 Bytes

Contents

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

import RunningSteps from '../RunningSteps';

const minProps = {
  id: 'task-id1',
  taskReload: true,
  cancelStep: jest.fn(),
  taskReloadStart: 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

60 entries across 60 versions & 1 rubygems

Version Path
foreman-tasks-10.0.2 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/RunningSteps.test.js
foreman-tasks-10.0.1 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/RunningSteps.test.js
foreman-tasks-10.0.0 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/RunningSteps.test.js
foreman-tasks-9.2.3 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/RunningSteps.test.js
foreman-tasks-9.2.2 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/RunningSteps.test.js
foreman-tasks-9.2.1 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/RunningSteps.test.js
foreman-tasks-9.2.0 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/RunningSteps.test.js
foreman-tasks-9.1.1 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/RunningSteps.test.js
foreman-tasks-9.0.4 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/RunningSteps.test.js
foreman-tasks-9.1.0 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/RunningSteps.test.js
foreman-tasks-9.0.2 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/RunningSteps.test.js
foreman-tasks-9.0.1 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/RunningSteps.test.js
foreman-tasks-8.3.3 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/RunningSteps.test.js
foreman-tasks-9.0.0 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/RunningSteps.test.js
foreman-tasks-8.2.1 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/RunningSteps.test.js
foreman-tasks-8.1.4 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/RunningSteps.test.js
foreman-tasks-8.3.2 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/RunningSteps.test.js
foreman-tasks-8.3.1 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/RunningSteps.test.js
foreman-tasks-8.1.3 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/RunningSteps.test.js
foreman-tasks-8.3.0 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/RunningSteps.test.js