diff --git a/app/assets/javascripts/discourse/tests/helpers/qunit-helpers.js b/app/assets/javascripts/discourse/tests/helpers/qunit-helpers.js index 98bb531a091..6b72aec9425 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 fde73beabb7..c11c5c7e3c3 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")); - }, - }); } );