mirror of
https://github.com/discourse/discourse.git
synced 2026-09-05 04:40:41 -05:00
UX: Merge notifications and user dropdown
This commit is contained in:
@@ -5,18 +5,10 @@ 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");
|
||||
ok(exists(".user-menu:visible"), "is lazily rendered after user opens it");
|
||||
ok(exists(".user-menu .menu-links"), "has showing / hiding user-dropdown links correctly bound");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user