narrow_banner: Add test for empty_narrow_self_private_message case.

This commit is contained in:
YashRE42 2021-03-31 17:19:02 +00:00 committed by Tim Abbott
parent 89c89c76bf
commit a15290429f
1 changed files with 7 additions and 0 deletions

View File

@ -159,6 +159,13 @@ run_test("show_empty_narrow_message", () => {
narrow_banner.show_empty_narrow_message();
assert($("#empty_narrow_private_message").visible());
people.add_active_user(me);
people.initialize_current_user(me.user_id);
set_filter([["pm-with", me.email]]);
hide_all_empty_narrow_messages();
narrow_banner.show_empty_narrow_message();
assert($("#empty_narrow_self_private_message").visible());
set_filter([["group-pm-with", "alice@example.com"]]);
hide_all_empty_narrow_messages();
narrow_banner.show_empty_narrow_message();