From 4e51499ba074be6933d201c2002ce5456a722f03 Mon Sep 17 00:00:00 2001 From: Zixuan James Li Date: Wed, 28 Sep 2022 21:39:48 -0400 Subject: [PATCH] composebox_typeahead: Fix invalid id reference. We renamed the id from "subject" to "stream_message_recipient_topic" in d7c2577ffbae07e310e7b7c78e1c251af22b9d25. It is concerning that the tests are not actually failing while this id has been wrong. The test case might have some redundant parts or is set up incorrectly. Signed-off-by: Zixuan James Li --- frontend_tests/node_tests/composebox_typeahead.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend_tests/node_tests/composebox_typeahead.js b/frontend_tests/node_tests/composebox_typeahead.js index e157d9b930..2aa159e655 100644 --- a/frontend_tests/node_tests/composebox_typeahead.js +++ b/frontend_tests/node_tests/composebox_typeahead.js @@ -1127,7 +1127,7 @@ test("initialize", ({override, mock_template}) => { event.key = "Tab"; event.shiftKey = false; - event.target.id = "subject"; + event.target.id = "stream_message_recipient_topic"; $("form#send_message_form").trigger(event); event.target.id = "compose-textarea"; $("form#send_message_form").trigger(event);