From b3274aa32e5271160587a2329f5457240a8da9f3 Mon Sep 17 00:00:00 2001 From: YashRE42 <33805964+YashRE42@users.noreply.github.com> Date: Wed, 31 Mar 2021 16:01:45 +0000 Subject: [PATCH] narrow_banner: Assert reply button disabled on show empty narrow msg. --- frontend_tests/node_tests/narrow.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend_tests/node_tests/narrow.js b/frontend_tests/node_tests/narrow.js index 1b93a07c65..93ce0bc382 100644 --- a/frontend_tests/node_tests/narrow.js +++ b/frontend_tests/node_tests/narrow.js @@ -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"]]);