Improve tests

This commit is contained in:
Charles Bochet
2023-10-24 17:13:50 +02:00
parent d58b85df54
commit 48c9ea855a
3 changed files with 8 additions and 5 deletions

View File

@ -5,6 +5,7 @@ import {
PageDecoratorArgs,
} from '~/testing/decorators/PageDecorator';
import { graphqlMocks } from '~/testing/graphqlMocks';
import { sleep } from '~/testing/sleep';
import { SettingsNewObject } from '../SettingsNewObject';
@ -24,4 +25,8 @@ export default meta;
export type Story = StoryObj<typeof SettingsNewObject>;
export const Default: Story = {};
export const Default: Story = {
play: async ({}) => {
await sleep(100);
},
};