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.
This commit is contained in:
Robin Ward 2021-09-03 15:16:57 -04:00
parent 9b30fbdbbd
commit 4b6307ecd9
2 changed files with 3 additions and 9 deletions

View File

@ -257,6 +257,7 @@ export function acceptance(name, optionsOrCallback) {
},
afterEach() {
resetMobile();
let app = getApplication();
if (options && options.afterEach) {
options.afterEach.call(this);

View File

@ -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"));
},
});
}
);