Skip to content

Commit 293125d

Browse files
committed
test(notifiations): working on storybook
1 parent 4151ab5 commit 293125d

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

site/src/pages/SetupPage/SetupPage.test.tsx

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,17 @@ describe("Setup Page", () => {
5656
}),
5757
);
5858

59-
renderWithRouter(<SetupPage />);
59+
renderWithRouter(
60+
createMemoryRouter(
61+
[
62+
{
63+
path: "/setup",
64+
element: <SetupPage />,
65+
},
66+
],
67+
{ initialEntries: ["/setup"] },
68+
),
69+
);
6070
await waitForLoaderToBeRemoved();
6171
await fillForm({ password: "short" });
6272
await waitFor(() => screen.findByText("Password is too short"));

0 commit comments

Comments
 (0)