FIX: We weren't properly resetting the mobile state between tests.

FIX: We weren’t properly resetting the mobile state between tests.

Additionally we had two tests with the same name which is not really supported.

diff --git a/app/assets/javascripts/discourse/tests/helpers/qunit-helpers.js b/app/assets/javascripts/discourse/tests/helpers/qunit-helpers.js
index 98bb531..6b72aec 100644
--- a/app/assets/javascripts/discourse/tests/helpers/qunit-helpers.js
+++ b/app/assets/javascripts/discourse/tests/helpers/qunit-helpers.js
@@ -257,6 +257,7 @@ export function acceptance(name, optionsOrCallback) {
     },
 
     afterEach() {
+      resetMobile();
       let app = getApplication();
       if (options && options.afterEach) {
         options.afterEach.call(this);
diff --git a/app/assets/javascripts/discourse/tests/integration/widgets/hamburger-menu-test.js b/app/assets/javascripts/discourse/tests/integration/widgets/hamburger-menu-test.js
index fde73be..c11c5c7 100644
--- a/app/assets/javascripts/discourse/tests/integration/widgets/hamburger-menu-test.js
+++ b/app/assets/javascripts/discourse/tests/integration/widgets/hamburger-menu-test.js
@@ -108,6 +108,8 @@ discourseModule(
         assert.ok(exists(".top-topics-link"));
         assert.ok(exists(".badge-link"));
         assert.ok(exists(".category-link"));
+        assert.ok(exists(".about-link"));
+        assert.ok(exists(".keyboard-shortcuts-link"));
       },
     });
 
@@ -268,14 +270,5 @@ discourseModule(
         assert.ok(!exists(".user-directory-link"));
       },
     });
-
-    componentTest("general links", {
-      template: hbs`{{mount-widget widget="hamburger-menu"}}`,
-
-      test(assert) {
-        assert.ok(exists(".about-link"));
-        assert.ok(exists(".keyboard-shortcuts-link"));
-      },
-    });
   }
 );

GitHub sha: 4b6307ecd97558ee5ff250ce200ce5c5b62f9084

This commit appears in #14244 which was approved by pmusaraj. It was merged by eviltrout.