Sha256: 9d5e42ba504a9933049724ec4f6a4d9472049cc4786ff97308f2799aa74d6f3b

Contents?: true

Size: 753 Bytes

Versions: 9

Compression:

Stored size: 753 Bytes

Contents

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

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 = 'gauge1';

test.skip('uses exact classname', () => {
  const data = [
    { name: 'Name', value: 45 },
  ]
  render(
    <Gauge
        chartData={data}
        data={{ testid: testId }}
        id='gaugeid'
    />
  );
 
  const kit = screen.getByTestId(testId);
  expect(kit).toHaveClass('pb_gauge_kit');
});

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_gauge/gauge.test.js
playbook_ui-14.5.0.pre.alpha.PLAY1486highchartscssdrivenPOC3953 app/pb_kits/playbook/pb_gauge/gauge.test.js
playbook_ui-14.5.0.pre.alpha.PLAY1486highchartscssdrivenPOC3950 app/pb_kits/playbook/pb_gauge/gauge.test.js
playbook_ui-14.5.0.pre.alpha.PLAY1486highchartscssdrivenPOC3944 app/pb_kits/playbook/pb_gauge/gauge.test.js
playbook_ui-14.5.0.pre.alpha.PLAY1486highchartscssdrivenPOC3940 app/pb_kits/playbook/pb_gauge/gauge.test.js
playbook_ui-14.5.0.pre.alpha.PLAY1486highchartscssdrivenPOC3931 app/pb_kits/playbook/pb_gauge/gauge.test.js
playbook_ui-14.5.0.pre.alpha.PLAY1486highchartscssdrivenPOC3930 app/pb_kits/playbook/pb_gauge/gauge.test.js
playbook_ui-14.4.0.pre.alpha.PLAY1486highchartscssdrivenPOC3923 app/pb_kits/playbook/pb_gauge/gauge.test.js
playbook_ui-14.4.0.pre.alpha.PLAY1486highchartscssdrivenPOC3921 app/pb_kits/playbook/pb_gauge/gauge.test.js