mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 17:15:32 +08:00
c5460b7d3f
- Rename `site-map` to `hamburger-menu` - Includes acceptance tests
23 lines
687 B
JavaScript
23 lines
687 B
JavaScript
import { acceptance } from "helpers/qunit-helpers";
|
|
|
|
acceptance("Header (Staff)", { loggedIn: true });
|
|
|
|
test("header", () => {
|
|
visit("/");
|
|
|
|
// Notifications
|
|
click("#user-notifications");
|
|
andThen(() => {
|
|
var $items = $("#notifications-dropdown li");
|
|
ok(exists($items), "is lazily populated after user opens it");
|
|
ok($items.first().hasClass("read"), "correctly binds items' 'read' class");
|
|
});
|
|
|
|
// User dropdown
|
|
click("#current-user");
|
|
andThen(() => {
|
|
ok(exists("#user-dropdown:visible"), "is lazily rendered after user opens it");
|
|
ok(exists("#user-dropdown .user-dropdown-links"), "has showing / hiding user-dropdown links correctly bound");
|
|
});
|
|
});
|