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 case for unknown is: operand empty narrow msg.

YashRE42df1d52ea1596
diff --git a/frontend_tests/node_tests/narrow.js b/frontend_tests/node_tests/narrow.js
index 8b0dba19497..0eb59bf8682 100644
--- a/frontend_tests/node_tests/narrow.js
+++ b/frontend_tests/node_tests/narrow.js
@@ -197,6 +197,11 @@ run_test("show_empty_narrow_message", () => {
hide_all_empty_narrow_messages();
narrow_banner.show_empty_narrow_message();
assert($("#empty_narrow_message").visible());
+
+ set_filter([["is", "invalid"]]);
+ hide_all_empty_narrow_messages();
+ narrow_banner.show_empty_narrow_message();
+ assert($("#empty_narrow_message").visible());
});
run_test("hide_empty_narrow_message", () => {