Skip to content

Commit

Permalink
fix stories
Browse files Browse the repository at this point in the history
  • Loading branch information
sebpalluel committed Oct 2, 2023
1 parent 7d13e96 commit bc7d690
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions libs/features/cart/src/lib/NoUserCart/NoUserCart.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect } from '@storybook/jest';
import type { Meta, StoryObj } from '@storybook/react';
import { screen, userEvent } from '@storybook/testing-library';
import { expect } from '@storybook/jest';

import { NoUserCart } from './NoUserCart';
import {
Expand Down Expand Up @@ -38,12 +38,8 @@ export const SectionWithNoUserNoCart: Story = {
},
};

export const SectionWithNoUser: Story = {
render: NoUserCartExample,
};

export const SectionWithNoUserOpened: Story = {
...SectionWithNoUser,
render: NoUserCartExample,
play: async (context) => {
userEvent.click(
await screen.findByRole('button', {
Expand Down

0 comments on commit bc7d690

Please sign in to comment.