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 empty_narrow_multi_private_message case.

YashRE42e05935a292be
diff --git a/frontend_tests/node_tests/narrow.js b/frontend_tests/node_tests/narrow.js
index 84e38a6e3e7..66c85dfb1a5 100644
--- a/frontend_tests/node_tests/narrow.js
+++ b/frontend_tests/node_tests/narrow.js
@@ -166,6 +166,11 @@ run_test("show_empty_narrow_message", () => {
narrow_banner.show_empty_narrow_message();
assert($("#empty_narrow_self_private_message").visible());
+ set_filter([["pm-with", me.email + "," + alice.email]]);
+ hide_all_empty_narrow_messages();
+ narrow_banner.show_empty_narrow_message();
+ assert($("#empty_narrow_multi_private_message").visible());
+
set_filter([["group-pm-with", "[email protected]"]]);
hide_all_empty_narrow_messages();
narrow_banner.show_empty_narrow_message();
diff --git a/tools/test-js-with-node b/tools/test-js-with-node
index f5d10af2d28..4d73176b2d2 100755
--- a/tools/test-js-with-node
+++ b/tools/test-js-with-node
@@ -90,7 +90,6 @@ EXEMPT_FILES = {
"static/js/message_viewport.js",
"static/js/muting_ui.js",
"static/js/narrow.js",
- "static/js/narrow_banner.js",
"static/js/navigate.js",
"static/js/night_mode.js",
"static/js/notifications.js",