diff --git a/test/javascripts/widgets/hamburger-menu-test.js.es6 b/test/javascripts/widgets/hamburger-menu-test.js.es6 index c50323bf189..c8eacfa0d7d 100644 --- a/test/javascripts/widgets/hamburger-menu-test.js.es6 +++ b/test/javascripts/widgets/hamburger-menu-test.js.es6 @@ -148,6 +148,13 @@ widgetTest("top categories - anonymous", { const maximum = count <= maxCategoriesToDisplay ? count : maxCategoriesToDisplay; assert.equal(find(".category-link").length, maximum); + assert.equal( + find(".category-link .category-name").text(), + categoriesByCount + .slice(0, maxCategoriesToDisplay) + .map(c => c.name) + .join("") + ); } });