From f009fa79140e3113ed8487c7bb40647fdad2ecc7 Mon Sep 17 00:00:00 2001 From: Michael Deeb Date: Mon, 7 Feb 2022 16:57:42 -0500 Subject: [PATCH] fix: dashboard/roadmap redirect test --- web/test/pages/index.test.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/test/pages/index.test.tsx b/web/test/pages/index.test.tsx index d7994297db..e81d90f878 100644 --- a/web/test/pages/index.test.tsx +++ b/web/test/pages/index.test.tsx @@ -55,10 +55,10 @@ describe("HomePage", () => { expect(mockPush).toHaveBeenCalledWith("/onboarding"); }); - it("redirects to onboarding page when it is unknown if user has completed onboarding flow or not", () => { + it("redirects to roadmap page when it is unknown if user has completed onboarding flow or not", () => { setMockUserDataResponse({ error: "NO_DATA", userData: undefined }); render(withAuth(, { user: generateUser({}) })); - expect(mockPush).toHaveBeenCalledWith("/roadmap"); + expect(mockPush).toHaveBeenCalledWith("/roadmap?error=true"); }); it("opens the modal with signUp = true in the querystring", () => { useMockRouter({ isReady: true, query: { signUp: "true" } });