Sha256: bd684cee44715f8aff55f270d4963c2bf6c1b8d69b0e56ee714226313076066b

Contents?: true

Size: 750 Bytes

Versions: 9

Compression:

Stored size: 750 Bytes

Contents

import React from 'react';
import { render, screen } from '../utilities/test-utils';
import BarGraph from './_bar_graph';

beforeEach(() => {
  // Silences error logs within the test suite.
  jest.spyOn(console, 'error');
  jest.spyOn(console, 'warn');
  console.error.mockImplementation(() => {});
  console.warn.mockImplementation(() => {});
});

afterEach(() => {
  console.error.mockRestore();
  console.warn.mockRestore();
});

const testId = 'bargraph1';

test.skip('bargraph uses exact classname', () => {
  render(
    <BarGraph
        className='super_important_class'
        data={{ testid: testId }}
        id='bar-default'
    />
  );
 
  const kit = screen.getByTestId(testId);
  expect(kit).toHaveClass('super_important_class');
});

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
playbook_ui-14.5.0.pre.alpha.PLAY1486highchartscssdrivenPOC3954 app/pb_kits/playbook/pb_bar_graph/barGraph.test.js
playbook_ui-14.5.0.pre.alpha.PLAY1486highchartscssdrivenPOC3953 app/pb_kits/playbook/pb_bar_graph/barGraph.test.js
playbook_ui-14.5.0.pre.alpha.PLAY1486highchartscssdrivenPOC3950 app/pb_kits/playbook/pb_bar_graph/barGraph.test.js
playbook_ui-14.5.0.pre.alpha.PLAY1486highchartscssdrivenPOC3944 app/pb_kits/playbook/pb_bar_graph/barGraph.test.js
playbook_ui-14.5.0.pre.alpha.PLAY1486highchartscssdrivenPOC3940 app/pb_kits/playbook/pb_bar_graph/barGraph.test.js
playbook_ui-14.5.0.pre.alpha.PLAY1486highchartscssdrivenPOC3931 app/pb_kits/playbook/pb_bar_graph/barGraph.test.js
playbook_ui-14.5.0.pre.alpha.PLAY1486highchartscssdrivenPOC3930 app/pb_kits/playbook/pb_bar_graph/barGraph.test.js
playbook_ui-14.4.0.pre.alpha.PLAY1486highchartscssdrivenPOC3923 app/pb_kits/playbook/pb_bar_graph/barGraph.test.js
playbook_ui-14.4.0.pre.alpha.PLAY1486highchartscssdrivenPOC3921 app/pb_kits/playbook/pb_bar_graph/barGraph.test.js