import React from 'react';
import { renderInSimpleTheme } from './helpers/theming';
import { Tooltip } from '../source/components/Tooltip';
import styles from '../stories/Tooltip.stories.scss';
test('tooltip plain', () => {
expect(renderInSimpleTheme(
hover over me
)).toMatchSnapshot();
});
test('tooltip with html', () => {
expect(renderInSimpleTheme(
I can use HTML
}>
hover over me
)).toMatchSnapshot();
});
test('tooltip isAligningRight', () => {
expect(renderInSimpleTheme(
hover over me
)).toMatchSnapshot();
});
test('tooltip isBounded', () => {
expect(renderInSimpleTheme(
hover over me
)).toMatchSnapshot();
});
test('tooltip with custom class', () => {
expect(renderInSimpleTheme(
hover over me
)).toMatchSnapshot();
});
test('tooltip isOpeningUpward={false}', () => {
expect(renderInSimpleTheme(
hover over me
)).toMatchSnapshot();
});
test('tooltip arrowRelativeToTip', () => {
expect(renderInSimpleTheme(
{'this is a really long string for demonstration purposes'}
)).toMatchSnapshot();
});
test('tooltip arrowRelativeToTip (below)', () => {
expect(renderInSimpleTheme(
{'this is a really long string for demonstration purposes'}
)).toMatchSnapshot();
});
test('tooltip isCentered', () => {
expect(renderInSimpleTheme(
{'this is a really long string for demonstration purposes'}
)).toMatchSnapshot();
});
test('tooltip isCentered (below)', () => {
expect(renderInSimpleTheme(
{'this is a really long string for demonstration purposes'}
)).toMatchSnapshot();
});
test('tooltip isCentered (below)', () => {
expect(renderInSimpleTheme(
{'this is a really long string for demonstration purposes'}
)).toMatchSnapshot();
});