Sha256: ae3fc3be2e4f4a3e834c3f71d8007b7dca0467697e06455b0c6de5339d9108fe

Contents?: true

Size: 1.12 KB

Versions: 11

Compression:

Stored size: 1.12 KB

Contents

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

import Errors from '../Errors';

const fixtures = {
  'render without Props': {},
  'render with Props': {
    executionPlan: {
      state: 'paused',
      cancellable: false,
    },
    failedSteps: [
      {
        error: {
          exception_class: 'RuntimeError',
          message:
            'Action Actions::Katello::EventQueue::Monitor is already active',
          backtrace: [
            "/home/vagrant/.gem/ruby/gems/dynflow-1.2.3/lib/dynflow/action/singleton.rb:15:in `rescue in singleton_lock!'",
            "/home/vagrant/.gem/ruby/gems/dynflow-1.2.3/lib/dynflow/action/singleton.rb:12:in `singleton_lock!'",
          ],
        },
        action_class: 'Actions::Katello::EventQueue::Monitor',
        state: 'error',
        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('Errors', () => {
  describe('rendering', () =>
    testComponentSnapshotsWithFixtures(Errors, fixtures));
});

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
foreman-tasks-0.17.6 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Errors.test.js
foreman-tasks-1.0.0 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Errors.test.js
foreman-tasks-0.17.5 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Errors.test.js
foreman-tasks-0.17.4 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Errors.test.js
foreman-tasks-0.17.3 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Errors.test.js
foreman-tasks-0.17.2 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Errors.test.js
foreman-tasks-0.16.3 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Errors.test.js
foreman-tasks-0.17.1 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Errors.test.js
foreman-tasks-0.16.2 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Errors.test.js
foreman-tasks-0.16.1 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Errors.test.js
foreman-tasks-0.17.0 webpack/ForemanTasks/Components/TaskDetails/Components/__tests__/Errors.test.js