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.

compose_closed_ui: Fix recipient ids in DM reply button test.

Pratik Chanda3966f43f83ee
diff --git a/web/tests/compose.test.cjs b/web/tests/compose.test.cjs
index ba99c86d47b..cdd0c2f07aa 100644
--- a/web/tests/compose.test.cjs
+++ b/web/tests/compose.test.cjs
@@ -857,10 +857,11 @@ test_ui("DM policy disabled", ({override}) => {
reply_disabled = compose_closed_ui.should_disable_compose_reply_button_for_direct_message();
assert.ok(!reply_disabled);
// For human user, Alice, the "Message X" button is disabled
- override(narrow_state, "pm_ids_string", () => "31,33");
+ override(narrow_state, "pm_ids_string", () => "31");
reply_disabled = compose_closed_ui.should_disable_compose_reply_button_for_direct_message();
assert.ok(reply_disabled);
// For human user and bot user, the "Message X" button is disabled
+ override(narrow_state, "pm_ids_string", () => "31,33");
reply_disabled = compose_closed_ui.should_disable_compose_reply_button_for_direct_message();
assert.ok(reply_disabled);
});