zulip/frontend_tests/node_tests
Tim Abbott 74c628b105 editing: Fix live update of ability to edit messages.
Previously, we didn't check the organization-level settings when
rendering a message list; instead, we only checked it when putting
messages into the message_store.  That resulted in the state being
stale in the event that the setting controlling whether one can edit
messages was changed.

We remove some node tests, because revidving the node test for their
new home in message_list_view would be more work than we probably want
to do with an upcoming release.  We basically need to be better about
exporting functions like populate_group_from_message_container and
set_topic_edit_properties, so we can do fine grained testing.

When we get around to the node tests, rather than exporting these
functions, it might make sense to create a new module with a name
like message_container.js, which would have all of these
last-second type of data manipulations on message objects.  This
would be nice to split out of message_list_view.js.  MLV is our
biggest module, and it's mostly cohesive, but it's real job
should be about assembling messages into a DOM list, which is
probably 80% of the code now.  The 20% that I'd want to consider
splitting out is actually closer in spirit to message_store.js.

Thanks to Steve Howell for helping with the node tests.
2017-08-23 12:03:35 -07:00
..
activity.js frontend: Make perfectScrollbars pass tests. 2017-08-16 08:07:28 -07:00
alert_words.js alert_words: Don't muck up rendered HTML content while munging. 2017-07-31 21:20:21 -07:00
bot_data.js node tests: Add coverage for get_all_bots_for_current_user. 2017-05-25 09:54:05 -07:00
channel.js middleware: Use a proper error code on CSRF failure. 2017-07-25 14:02:12 -07:00
colorspace.js node tests: Add tests for colorspace.js. 2017-05-25 10:09:39 -07:00
common.js Introduce make_zjquery(). 2017-05-24 17:41:41 -07:00
compose_actions.js common.js: Migrate common.js module to use IIFE module style. 2017-06-22 19:06:32 -04:00
compose_fade.js Use stream_id in recipient comparisons. 2017-02-26 16:18:02 -08:00
compose.js sending messages: Extract sent_messages.js. 2017-08-01 08:58:56 -07:00
composebox_typeahead.js emoji: Create tests to check the typeahead resuts. 2017-07-26 09:27:17 -07:00
dict.js Add Dict.is_empty(). 2017-04-21 21:59:22 -07:00
dispatch.js node_tests: Remove spurious assignments to args. 2017-08-22 23:49:05 -07:00
drafts.js node tests: Test drafts_overlay_open(). 2017-06-07 00:02:14 -07:00
emoji_picker.js emoji_pickers: Add tests for emoji_picker.initialize(). 2017-08-22 08:07:25 -04:00
emoji.js emoji.js: Add test coverage for initialize. 2017-06-26 14:24:20 -04:00
filter.js filter: Remove a spurious assignment. 2017-08-22 23:49:18 -07:00
hashchange.js Add people.initialize(). 2017-05-23 19:35:08 -07:00
hotkey.js Fix A/D hotkeys for cycling through stream narrows. 2017-08-16 15:45:47 -07:00
hotspots.js hotspots: Unit test hotspots.js. 2017-07-28 16:34:15 -07:00
i18n.js settings: Update text in templates. 2017-07-24 17:33:14 -07:00
markdown.js emoji.js: Refactor to make better use of initialize(). 2017-08-16 19:18:26 -04:00
message_edit.js message edit: Prevent editing any failed messages. 2017-07-21 11:38:25 -07:00
message_list_view.js bookend: Make ordering of subscribe bookends consistent. 2017-06-05 16:43:26 -07:00
message_list.js bookend: Hide re-subscribe button for private streams. 2017-06-20 20:56:26 -04:00
message_store.js editing: Fix live update of ability to edit messages. 2017-08-23 12:03:35 -07:00
muting.js Revert "muting.js: Track muted streams using stream id." 2017-05-17 07:06:32 -07:00
narrow_state.js narrow.js: Create narrowed_by_stream_reply(). 2017-06-27 14:06:59 -04:00
narrow.js Use zrequire in node_tests/narrow.js. 2017-08-09 12:32:09 -07:00
password.js common.js: Don't set default password quality/length in frontend. 2017-07-07 14:48:06 -07:00
people.js Add people.pm_lookup_key 2017-08-02 09:40:47 -07:00
pm_conversations.js typeahead: Add pm_conversations module. 2017-06-01 08:05:37 +00:00
pm_list.js Use zrequire in node_tests/pm_list.js. 2017-08-09 12:32:09 -07:00
presence.js node tests: Add test_set_user_status(). 2017-06-19 08:00:55 -04:00
reactions.js reactions: Store the emoji codepoint in the database. 2017-08-15 09:29:27 -07:00
recent_senders.js recent_senders: Fix exception in certain typeahead flows. 2017-07-28 11:04:11 -07:00
rtl.js Add rtl.js library for detecting direction of text. 2017-04-22 11:25:54 -07:00
search_suggestion.js topic_data.js: Refactor topic history internals. 2017-07-27 14:26:22 -07:00
server_events.js Revert commits related to client_message_id. 2017-07-14 12:13:35 -07:00
settings_bots.js zjquery: Add $.create() method. 2017-07-08 10:32:32 -04:00
settings_org.js editing: Hide topic-edit-pencil if message editing is disabled. 2017-08-22 19:43:56 -07:00
stream_color.js eslint: change space-before-function-paren from warning to error. 2016-12-05 09:50:37 -08:00
stream_data.js Use zrequire in node_tests/stream_data.js. 2017-08-09 12:32:09 -07:00
stream_events.js zjquery: Add $.create() method. 2017-07-08 10:32:32 -04:00
stream_list.js Extract top_left_corner.js. 2017-08-14 13:03:57 -07:00
stream_sort.js node tests: Get stream_sort.js to 100% node coverage. 2017-06-07 03:23:57 -06:00
subs.js frontend: Make perfectScrollbars pass tests. 2017-08-16 08:07:28 -07:00
templates.js stream_list: Use data-topic-name for topic names. 2017-08-16 18:03:44 -07:00
timerender.js uploads: Only display year uploaded if previous year. 2017-07-25 23:06:58 -07:00
top_left_corner.js Extract top_left_corner.js. 2017-08-14 13:03:57 -07:00
topic_data.js Add topic_data.get_server_history(). 2017-08-08 17:07:09 -04:00
topic_generator.js hotkeys: Fix "n" key to work inside a muted stream. 2017-08-17 09:01:49 -07:00
topic_list.js Always show "more topics" link if you have server history. 2017-08-11 13:01:39 -07:00
typeahead_helper.js typeahead: Use recent_senders/pm_conversations to sort suggestions. 2017-07-09 10:51:19 -04:00
typing_data.js Extract typing indicator inbound timing logic. 2017-03-22 08:20:21 -07:00
typing_status.js Revamp state tracking for outbound typing indicators. 2017-03-22 07:01:20 -07:00
unread.js Fix bug with topic edits on read messages. 2017-08-10 14:36:18 -04:00
user_events.js node: Fix node test for user_events. 2017-08-16 16:46:41 -07:00
util.js util: Remove execute_early. 2017-07-04 13:54:33 -07:00
zjquery.js zjquery: Add $.create() method. 2017-07-08 10:32:32 -04:00