A platform for community discussion. Free, open, simple.
FIX: mock hierarchical_search in mobile sidebar slide-out test (#38222)
Krisab11d18b0077
diff --git a/frontend/discourse/tests/acceptance/sidebar-user-categories-section-test.js b/frontend/discourse/tests/acceptance/sidebar-user-categories-section-test.jsindex c039af1710a..9e8f9b86dc5 100644--- a/frontend/discourse/tests/acceptance/sidebar-user-categories-section-test.js+++ b/frontend/discourse/tests/acceptance/sidebar-user-categories-section-test.js@@ -1373,6 +1373,11 @@ acceptance(});needs.mobileView();needs.settings({ navigation_menu: "sidebar" });+ needs.pretender((server, helper) => {+ server.get("/categories/hierarchical_search", () => {+ return helper.response({ categories: [] });+ });+ });test("hamburger closes when header dropdown navigates to a new page", async function (assert) {await visit("/");