Sha256: 843f7e64588545a5001b55f7e1c7d7aad7cfec1e9cc6f8ee4796a002c18f1598

Contents?: true

Size: 955 Bytes

Versions: 185

Compression:

Stored size: 955 Bytes

Contents

/* eslint-disable */
// Ignore eslint for this entire file because our rules
// don't match patternfly-react's rules
import React from 'react';
import { shallow } from 'enzyme';
import toJson from 'enzyme-to-json';

import { LoadingState } from './index';
jest.useFakeTimers();

test('Loading State renders properly while loading', () => {
  const component = shallow(
    <LoadingState loading loadingText="Loading">
      <p>Loading Complete</p>
    </LoadingState>
  );
    jest.runAllTimers();
    component.update();
    expect(component.state('render')).toEqual(true);
    expect(toJson(component.render())).toMatchSnapshot();
});

test('Loading State renders properly while not loading', () => {
  const component = shallow(
    <LoadingState loading={false} loadingText="Loading">
      <p>Loading Complete</p>
    </LoadingState>
  );
    jest.runAllTimers();
    component.update();
    expect(toJson(component.render())).toMatchSnapshot();
});

Version data entries

185 entries across 185 versions & 1 rubygems

Version Path
katello-4.15.0.rc2 webpack/components/LoadingState/LoadingState.test.js
katello-4.15.0.rc1 webpack/components/LoadingState/LoadingState.test.js
katello-4.14.1 webpack/components/LoadingState/LoadingState.test.js
katello-4.14.0 webpack/components/LoadingState/LoadingState.test.js
katello-4.14.0.rc3 webpack/components/LoadingState/LoadingState.test.js
katello-4.14.0.rc2 webpack/components/LoadingState/LoadingState.test.js
katello-4.14.0.rc1.1 webpack/components/LoadingState/LoadingState.test.js
katello-4.14.0.rc1 webpack/components/LoadingState/LoadingState.test.js
katello-4.13.1 webpack/components/LoadingState/LoadingState.test.js
katello-4.13.0 webpack/components/LoadingState/LoadingState.test.js
katello-4.12.1 webpack/components/LoadingState/LoadingState.test.js
katello-4.13.0.rc1 webpack/components/LoadingState/LoadingState.test.js
katello-4.12.0 webpack/components/LoadingState/LoadingState.test.js
katello-4.12.0.rc3 webpack/components/LoadingState/LoadingState.test.js
katello-4.12.0.rc2 webpack/components/LoadingState/LoadingState.test.js
katello-4.12.0.rc1 webpack/components/LoadingState/LoadingState.test.js
katello-4.11.1 webpack/components/LoadingState/LoadingState.test.js
katello-4.11.0 webpack/components/LoadingState/LoadingState.test.js
katello-4.11.0.rc2 webpack/components/LoadingState/LoadingState.test.js
katello-4.11.0.rc1 webpack/components/LoadingState/LoadingState.test.js