Sha256: 244ca1fa382e082eda4c9b7d86673bb7c94a56aaea4cfd77debccc4badf2cfd6

Contents?: true

Size: 673 Bytes

Versions: 60

Compression:

Stored size: 673 Bytes

Contents

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

import TaskDetails from '../TaskDetails';
import { minProps } from './TaskDetails.fixtures';

const fixtures = {
  'render with loading Props': { ...minProps, isLoading: true },
  'render with error Props': {
    ...minProps,
    status: 'ERROR',
    APIerror: { message: 'some-error' },
  },
  'render with min Props': minProps,
};

delete window.location;
window.location = new URL(
  'https://foreman.com/foreman_tasks/tasks/a15dd820-32f1-4ced-9ab7-c0fab8234c47/'
);

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

Version data entries

60 entries across 60 versions & 1 rubygems

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