Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

narrow_banner: Add test for hide_empty_narrow_message.

YashRE42f1808de5f6e3
diff --git a/frontend_tests/node_tests/narrow.js b/frontend_tests/node_tests/narrow.js
index dda2a5dbc7a..c6f4d7b5a3d 100644
--- a/frontend_tests/node_tests/narrow.js
+++ b/frontend_tests/node_tests/narrow.js
@@ -191,6 +191,14 @@ run_test("show_empty_narrow_message", () => {
assert.equal(items[1].text(), "grail");
});
+run_test("hide_empty_narrow_message", () => {
+ $(".empty_feed_notice").show();
+ narrow_banner.hide_empty_narrow_message();
+ assert(!$(".empty_feed_notice").visible());
+ assert.equal($("#left_bar_compose_reply_button_big").attr("title"), "translated: Reply (r)");
+ assert(!$("#left_bar_compose_reply_button_big").prop("disabled"));
+});
+
run_test("show_search_stopwords", () => {
narrow_state.reset_current_filter();
let items = [];