Improve tests (#871)

This commit is contained in:
Charles Bochet
2023-07-24 00:57:56 -07:00
committed by GitHub
parent 2b885f2496
commit 07180af8c0
53 changed files with 432 additions and 251 deletions

View File

@ -3,7 +3,7 @@ import { Meta, StoryObj } from '@storybook/react';
import { EntityBoard } from '@/pipeline/components/EntityBoard';
import { opportunitiesBoardOptions } from '~/pages/opportunities/opportunitiesBoardOptions';
import { ComponentDecorator } from '~/testing/decorators';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { graphqlMocks } from '~/testing/graphqlMocks';
import { defaultPipelineProgressOrderBy } from '../../pipeline/queries';

View File

@ -3,7 +3,7 @@ import { MemoryRouter } from 'react-router-dom';
import { Meta, StoryObj } from '@storybook/react';
import { CompanyBoardCard } from '@/companies/components/CompanyBoardCard';
import { ComponentDecorator } from '~/testing/decorators';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { graphqlMocks } from '~/testing/graphqlMocks';
import { mockedPipelineProgressData } from '~/testing/mock-data/pipeline-progress';

View File

@ -2,7 +2,7 @@ import { BrowserRouter } from 'react-router-dom';
import styled from '@emotion/styled';
import type { Meta, StoryObj } from '@storybook/react';
import { ComponentDecorator } from '~/testing/decorators';
import { ComponentDecorator } from '~/testing/decorators/ComponentDecorator';
import { CompanyChip } from '../components/CompanyChip';
@ -37,14 +37,13 @@ const TestCellContainer = styled.div`
min-width: 250px;
overflow: hidden;
text-wrap: nowrap;
`;
export const SmallName: Story = {
args: {
id: 'airbnb',
name: 'Airbnb',
picture: 'https://api.faviconkit.com/airbnb.com/144',
pictureUrl: 'https://api.faviconkit.com/airbnb.com/144',
},
};
@ -56,6 +55,6 @@ export const BigName: Story = {
args: {
id: 'google',
name: 'Google with a real big name to overflow the cell',
picture: 'https://api.faviconkit.com/google.com/144',
pictureUrl: 'https://api.faviconkit.com/google.com/144',
},
};