Creates storybook and tests for Tooltip component (#13184)

This commit is contained in:
Michael S. Molina
2021-02-18 03:51:35 -03:00
committed by GitHub
parent d48b894573
commit fcd443d366
24 changed files with 301 additions and 217 deletions

View File

@@ -20,7 +20,7 @@ import React from 'react';
import { shallow } from 'enzyme';
import Label from 'src/components/Label';
import TooltipWrapper from 'src/components/TooltipWrapper';
import { Tooltip } from 'src/common/components/Tooltip';
import RowCountLabel from 'src/explore/components/RowCountLabel';
describe('RowCountLabel', () => {
@@ -34,10 +34,10 @@ describe('RowCountLabel', () => {
true,
);
});
it('renders a Label and a TooltipWrapper', () => {
it('renders a Label and a Tooltip', () => {
const wrapper = shallow(<RowCountLabel {...defaultProps} />);
expect(wrapper.find(Label)).toExist();
expect(wrapper.find(TooltipWrapper)).toExist();
expect(wrapper.find(Tooltip)).toExist();
});
it('renders a danger when limit is reached', () => {
const props = {