mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
Speech bubble waiting for an ajax response prior to rendering
This commit is contained in:
@ -23,7 +23,7 @@ test("showNotifications action", function() {
|
||||
|
||||
equal(controller.get("notifications"), null, "notifications are null before data has finished loading");
|
||||
equal(Discourse.User.current().get("unread_notifications"), 1, "current user's unread notifications count is not zeroed before data has finished loading");
|
||||
ok(viewSpy.showDropdownBySelector.notCalled, "dropdown with notifications is not shown before data has finished loading");
|
||||
ok(viewSpy.showDropdownBySelector.calledWith("#user-notifications"), "dropdown with loading glyph is shown before data has finished loading");
|
||||
|
||||
|
||||
Ember.run(function() {
|
||||
|
Reference in New Issue
Block a user