2015-08-26 00:50:19 +08:00
|
|
|
import { acceptance } from "helpers/qunit-helpers";
|
|
|
|
|
|
|
|
acceptance("Hamburger Menu");
|
|
|
|
|
|
|
|
test("Menu Items", (assert) => {
|
|
|
|
visit("/");
|
|
|
|
click("#toggle-hamburger-menu");
|
|
|
|
andThen(() => {
|
2015-08-27 03:51:56 +08:00
|
|
|
assert.ok(!exists(".hamburger-panel .admin-link"), 'does not have admin link');
|
|
|
|
assert.ok(!exists(".hamburger-panel .flagged-posts-link"), 'does not have flagged posts link');
|
2015-08-26 00:50:19 +08:00
|
|
|
|
2015-08-27 03:51:56 +08:00
|
|
|
assert.ok(exists(".hamburger-panel .latest-topics-link"), 'last link to latest');
|
|
|
|
assert.ok(exists(".hamburger-panel .badge-link"), 'has link to badges');
|
|
|
|
assert.ok(exists(".hamburger-panel .user-directory-link"), 'has user directory link');
|
|
|
|
assert.ok(exists(".hamburger-panel .faq-link"), 'has faq link');
|
|
|
|
assert.ok(exists(".hamburger-panel .about-link"), 'has about link');
|
|
|
|
assert.ok(exists(".hamburger-panel .categories-link"), 'has categories link');
|
2015-08-26 00:50:19 +08:00
|
|
|
|
2015-08-27 03:51:56 +08:00
|
|
|
assert.ok(exists('.hamburger-panel .category-link'), 'has at least one category');
|
2015-08-26 00:50:19 +08:00
|
|
|
});
|
|
|
|
});
|