narrow_banner: Assert reply button disabled on show empty narrow msg.

This commit is contained in:
YashRE42
2021-03-31 16:01:45 +00:00
committed by Tim Abbott
parent dc02d4550f
commit b3274aa32e

View File

@@ -73,6 +73,7 @@ run_test("uris", () => {
});
run_test("show_empty_narrow_message", () => {
$("#left_bar_compose_reply_button_big").prop("disabled", false);
narrow_state.reset_current_filter();
narrow_banner.show_empty_narrow_message();
assert.equal($(".empty_feed_notice").visible(), false);
@@ -81,6 +82,7 @@ run_test("show_empty_narrow_message", () => {
$("#left_bar_compose_reply_button_big").attr("title"),
"translated: There are no messages to reply to.",
);
assert($("#left_bar_compose_reply_button_big").prop("disabled"));
// for non-existent or private stream
set_filter([["stream", "Foo"]]);