From acac634ef13cec130b24be0f6fe4003d493f8af6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ervin=20R=C3=A1cz?= Date: Tue, 25 Feb 2025 13:43:27 +0200 Subject: [PATCH] fix(storybook): improve error message for missing '#storybook-root' element --- frontend/.storybook/test-runner.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/.storybook/test-runner.ts b/frontend/.storybook/test-runner.ts index 5a9589f82..38c162bbb 100644 --- a/frontend/.storybook/test-runner.ts +++ b/frontend/.storybook/test-runner.ts @@ -21,7 +21,7 @@ const config: TestRunnerConfig = { const innerHTML = await elementHandler.innerHTML(); expect(innerHTML).toMatchSnapshot(); } else { - throw new Error("elementHandler is null!"); + throw new Error("The '#storybook-root' element was not found. elementHandler is null!"); } }, };