FIX: Regressions in JS test suite

FIX: Regressions in JS test suite

diff --git a/app/assets/javascripts/discourse/widgets/post-admin-menu.js.es6 b/app/assets/javascripts/discourse/widgets/post-admin-menu.js.es6
index fd2907d..718730e 100644
--- a/app/assets/javascripts/discourse/widgets/post-admin-menu.js.es6
+++ b/app/assets/javascripts/discourse/widgets/post-admin-menu.js.es6
@@ -4,10 +4,7 @@ import { ButtonClass } from "discourse/widgets/button";
 
 createWidget(
   "post-admin-menu-button",
-  jQuery.extend(ButtonClass, {
-    tagName: "li.btn",
-    secondaryAction: "closeAdminMenu"
-  })
+  jQuery.extend(ButtonClass, { tagName: "li.btn" })
 );
 
 export function buildManageButtons(attrs, currentUser, siteSettings) {
@@ -117,6 +114,7 @@ export default createWidget("post-admin-menu", {
 
     buildManageButtons(this.attrs, this.currentUser, this.siteSettings).forEach(
       b => {
+        b.secondaryAction = "closeAdminMenu";
         contents.push(this.attach("post-admin-menu-button", b));
       }
     );
diff --git a/test/javascripts/widgets/hamburger-menu-test.js.es6 b/test/javascripts/widgets/hamburger-menu-test.js.es6
index 16c6ddb..fe2db01 100644
--- a/test/javascripts/widgets/hamburger-menu-test.js.es6
+++ b/test/javascripts/widgets/hamburger-menu-test.js.es6
@@ -54,14 +54,14 @@ widgetTest("staff menu", {
   beforeEach() {
     this.currentUser.setProperties({
       staff: true,
-      site_flagged_posts_count: 3
+      reviewable_count: 3
     });
   },
 
   test(assert) {
     assert.ok(find(".admin-link").length);
-    assert.ok(find(".flagged-posts-link").length);
-    assert.equal(find(".flagged-posts").text(), "3");
+    assert.ok(find(".review").length);
+    assert.equal(find(".reviewables").text(), "3");
     assert.ok(!find(".settings-link").length);
   }
 });

GitHub sha: 3660b856