Sha256: 80b481081bdaf1d4b6d5637e3c04b86a10c8748225e69a658ab77a9fd4e7a55b

Contents?: true

Size: 705 Bytes

Versions: 188

Compression:

Stored size: 705 Bytes

Contents

import React from 'react';
import TestRenderer from 'react-test-renderer';
import SubscriptionDetailProducts from '../SubscriptionDetailProducts';
import { successState } from './subscriptionDetails.fixtures';

describe('subscription detail product page', () => {
  it('renders correctly', () => {
    const testRenderer = TestRenderer
      .create(<SubscriptionDetailProducts subscriptionDetails={successState} />);
    const testInstance = testRenderer.root;

    expect(testRenderer.toJSON()).toMatchSnapshot();
    expect(testInstance.findByType('h2').children[0]).toBe('Provided Products');
    expect(testInstance.findAllByType('li')).toHaveLength(successState.provided_products.length);
  });
});

Version data entries

188 entries across 188 versions & 1 rubygems

Version Path
katello-4.15.0.rc2 webpack/scenes/Subscriptions/Details/__tests__/SubscriptionDetailProducts.test.js
katello-4.15.0.rc1 webpack/scenes/Subscriptions/Details/__tests__/SubscriptionDetailProducts.test.js
katello-4.14.1 webpack/scenes/Subscriptions/Details/__tests__/SubscriptionDetailProducts.test.js
katello-4.14.0 webpack/scenes/Subscriptions/Details/__tests__/SubscriptionDetailProducts.test.js
katello-4.14.0.rc3 webpack/scenes/Subscriptions/Details/__tests__/SubscriptionDetailProducts.test.js
katello-4.14.0.rc2 webpack/scenes/Subscriptions/Details/__tests__/SubscriptionDetailProducts.test.js
katello-4.14.0.rc1.1 webpack/scenes/Subscriptions/Details/__tests__/SubscriptionDetailProducts.test.js
katello-4.14.0.rc1 webpack/scenes/Subscriptions/Details/__tests__/SubscriptionDetailProducts.test.js
katello-4.13.1 webpack/scenes/Subscriptions/Details/__tests__/SubscriptionDetailProducts.test.js
katello-4.13.0 webpack/scenes/Subscriptions/Details/__tests__/SubscriptionDetailProducts.test.js
katello-4.12.1 webpack/scenes/Subscriptions/Details/__tests__/SubscriptionDetailProducts.test.js
katello-4.13.0.rc1 webpack/scenes/Subscriptions/Details/__tests__/SubscriptionDetailProducts.test.js
katello-4.12.0 webpack/scenes/Subscriptions/Details/__tests__/SubscriptionDetailProducts.test.js
katello-4.12.0.rc3 webpack/scenes/Subscriptions/Details/__tests__/SubscriptionDetailProducts.test.js
katello-4.12.0.rc2 webpack/scenes/Subscriptions/Details/__tests__/SubscriptionDetailProducts.test.js
katello-4.12.0.rc1 webpack/scenes/Subscriptions/Details/__tests__/SubscriptionDetailProducts.test.js
katello-4.11.1 webpack/scenes/Subscriptions/Details/__tests__/SubscriptionDetailProducts.test.js
katello-4.11.0 webpack/scenes/Subscriptions/Details/__tests__/SubscriptionDetailProducts.test.js
katello-4.11.0.rc2 webpack/scenes/Subscriptions/Details/__tests__/SubscriptionDetailProducts.test.js
katello-4.11.0.rc1 webpack/scenes/Subscriptions/Details/__tests__/SubscriptionDetailProducts.test.js