Fix tests (#848)

* Fix tests

* Fix tests

* Fix tests
This commit is contained in:
Charles Bochet
2023-07-22 23:29:58 -07:00
committed by GitHub
parent 0731487990
commit 742791bd92
8 changed files with 127 additions and 47 deletions

View File

@ -1,4 +1,5 @@
import type { Meta, StoryObj } from '@storybook/react';
import { within } from '@storybook/testing-library';
import { graphqlMocks } from '~/testing/graphqlMocks';
import { getRenderWrapperForPage } from '~/testing/renderWrappers';
@ -22,4 +23,8 @@ export const Default: Story = {
parameters: {
msw: graphqlMocks,
},
play: async ({ canvasElement }) => {
const canvas = within(canvasElement);
await canvas.findByText('Copy link');
},
};