mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 17:23:44 +08:00
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:
parent
9b30fbdbbd
commit
4b6307ecd9
|
@ -257,6 +257,7 @@ export function acceptance(name, optionsOrCallback) {
|
|||
},
|
||||
|
||||
afterEach() {
|
||||
resetMobile();
|
||||
let app = getApplication();
|
||||
if (options && options.afterEach) {
|
||||
options.afterEach.call(this);
|
||||
|
|
|
@ -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"));
|
||||
},
|
||||
});
|
||||
}
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue
Block a user