From 113ab0fc7d9782236f05cef74ef4cfc67effc8cf Mon Sep 17 00:00:00 2001 From: MoritzWeber Date: Tue, 15 Oct 2024 10:05:01 +0200 Subject: [PATCH] test(storybook): Capture "Create project" story snapshots with delay We have to give it a bit more time to wait for the play function to finish. --- .../projects/create-project/create-project.stories.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/frontend/src/app/projects/create-project/create-project.stories.ts b/frontend/src/app/projects/create-project/create-project.stories.ts index 7b1234975..54ee5c173 100644 --- a/frontend/src/app/projects/create-project/create-project.stories.ts +++ b/frontend/src/app/projects/create-project/create-project.stories.ts @@ -53,6 +53,11 @@ export const AddTeamMembers: Story = { const createProject = canvas.getByTestId('button-create-project'); await userEvent.click(createProject); }, + parameters: { + screenshot: { + delay: 1000, + }, + }, }; export const AddModel: Story = { @@ -79,4 +84,9 @@ export const AddModel: Story = { const skipMembers = canvas.getByTestId('button-skipAddMembers'); await userEvent.click(skipMembers); }, + parameters: { + screenshot: { + delay: 1000, + }, + }, };