diff --git a/config/routes.rb b/config/routes.rb index d520ee7519..930514526c 100755 --- a/config/routes.rb +++ b/config/routes.rb @@ -109,7 +109,7 @@ get "/logout" => "dashboard#logout", as: :logout get "/app" => "dashboard#main_app", as: :dashboard - get "/app/controls" => "dashboard#main_app", as: :app_landing_page + get "/app/designer/controls" => "dashboard#main_app", as: :app_landing_page get "/app/messages" => "dashboard#main_app", as: :app_message_center match "/app/*path", to: "dashboard#main_app", via: :all, constraints: { format: "html" } diff --git a/frontend/__tests__/app_test.tsx b/frontend/__tests__/app_test.tsx index bf3350a8fd..38764652b1 100644 --- a/frontend/__tests__/app_test.tsx +++ b/frontend/__tests__/app_test.tsx @@ -1,7 +1,7 @@ -let mockPath = ""; -jest.mock("../history", () => ({ - getPathArray: jest.fn(() => mockPath.split("/")), - history: { getCurrentLocation: () => ({ pathname: mockPath }) } +let mockShowPopUp = false; +jest.mock("../controls_popup", () => ({ + ControlsPopup: () =>
, + showControlsPopup: () => mockShowPopUp, })); import * as React from "react"; @@ -47,28 +47,16 @@ const fakeProps = (): AppProps => ({ }); describe("{t("This page has moved. Redirecting...")}