Fix clicks do not work anymore

This commit is contained in:
Charles Bochet
2023-07-17 19:15:47 -07:00
parent a972705ce6
commit 9895c1d5d6
3 changed files with 7 additions and 9 deletions

View File

@ -1,7 +1,7 @@
import { getOperationName } from '@apollo/client/utilities';
import { expect } from '@storybook/jest';
import type { Meta, StoryObj } from '@storybook/react';
import { within } from '@storybook/testing-library';
import { fireEvent, within } from '@storybook/testing-library';
import { graphql } from 'msw';
import {
@ -71,7 +71,7 @@ export const EditNote: Story = {
).toBeInTheDocument();
const workspaceName = await canvas.findByText('Twenty');
await workspaceName.click();
await fireEvent.mouseUp(workspaceName);
expect(await canvas.queryByDisplayValue('My very first note')).toBeNull();