zulip/frontend_tests/node_tests
Sahil Batra a0965d7335 activity: Use setTimeout instead of setInterval.
Instead of using setInterval to call send_presence_to_server
repeatedly, we now simluate setInterval using setTimeout.

This change helps us to avoid the condition likely related to resume
from suspend, when the browser tries to catch up by running a large
number of "missed" copies of the setInterval hook, causing the server
to rate-limit the client.

Fixes #23438.
2022-11-14 12:37:14 -08:00
..
lib left_side_userlist: Remove feature from frontend. 2022-11-14 12:23:55 -08:00
templates
activity.js activity: Use setTimeout instead of setInterval. 2022-11-14 12:37:14 -08:00
alert_words.js alert_words: Fix alert words with HTML special characters. 2022-03-04 12:26:49 -08:00
alert_words_ui.js alert word: Convert inline form to modal. 2022-08-15 19:07:38 -07:00
billing.js node_tests: Remove low-hanging uses of __Rewire__. 2022-07-13 16:27:30 -07:00
billing_helpers.js node_tests: Add a few missing $ prefixes. 2022-03-17 13:10:23 -07:00
blueslip_stacktrace.js
bot_data.js confirm_deactivate_user: Provide additional information about user. 2022-07-26 17:03:02 -07:00
browser_history.js docs: Consistently hyphenate “web-public”. 2022-01-28 17:45:45 -08:00
buddy_data.js people: Use names in PM urls instead of emails. 2022-10-25 10:42:00 -07:00
buddy_list.js js: Prefix jQuery object variable names with $. 2022-03-16 12:52:07 -07:00
channel.js channel: Remove pending_requests list. 2022-08-19 12:17:40 -07:00
color_data.js node_tests: Remove low-hanging uses of __Rewire__. 2022-07-13 16:27:30 -07:00
colorspace.js
common.js keyboard-shortcuts: Simplify `adjust_mac_shortcuts`. 2022-09-13 11:21:10 -07:00
components.js js: Enable no-jquery/no-constructor-attributes. 2022-08-16 13:42:28 -07:00
compose.js compose-box: Remove reset max-height calculation for preview click. 2022-10-25 13:49:29 -07:00
compose_actions.js compose-actions: Load compose box for PMs based on org policy. 2022-11-04 14:08:25 -07:00
compose_closed_ui.js message_lists: Remove cases for table_name being undefined. 2022-08-18 12:30:30 -07:00
compose_error.js compose: Use loading spinner as loading indicator. 2021-12-02 15:11:15 -08:00
compose_fade.js node_tests: Enforce 100% coverage for test files. 2022-04-10 19:31:56 -04:00
compose_pm_pill.js node_tests: Remove low-hanging uses of __Rewire__. 2022-07-13 16:27:30 -07:00
compose_state.js compose: Offer narrow to compose target button for private messages. 2022-10-05 11:11:28 -07:00
compose_ui.js compose: Use text-area-edit for syntax replacements. 2022-11-10 16:15:33 -08:00
compose_validate.js node_tests: Minor cleanup for "subject" references. 2022-10-04 11:59:22 -07:00
compose_video.js node_tests: Remove low-hanging uses of __Rewire__. 2022-07-13 16:27:30 -07:00
composebox_typeahead.js composebox_typeahead: Fix invalid id reference. 2022-10-04 11:59:22 -07:00
copy_and_paste.js docs: Update global links to new contributing guide URL. 2022-08-25 11:25:02 -07:00
deprecated_feature_notice.js deprecated_feature_notice: Migrate modal to dialog_widget. 2021-10-29 16:09:39 -07:00
dispatch.js left_side_userlist: Remove feature from frontend. 2022-11-14 12:23:55 -08:00
dispatch_subs.js left-sidebar: Make Subscribe to more streams more informative. 2022-08-15 12:32:43 -07:00
drafts.js drafts: Rename undefined draft topics to empty string. 2022-11-02 16:36:36 -07:00
dropdown_list_widget.js dropdown_list_widget: Separate setup method from constructor. 2022-04-27 22:09:10 -07:00
echo.js message_lists: Add a function to return rendered message_lists. 2022-08-18 12:30:30 -07:00
emoji.js emojis: Un-share the emoji.js module. 2022-04-04 13:28:49 -07:00
emoji_picker.js emoji: Finish script to generate emoji_names.py with CLDR data. 2022-10-04 12:29:35 -07:00
event_status.js node_tests: Reenable asynchronous event_status test. 2022-08-18 08:55:31 -07:00
example1.js custom_check: Avoid use of assert to avoid confusion with assert.equal. 2021-06-10 09:15:57 -07:00
example2.js narrow: Fix messages being cached without flags set. 2022-03-24 08:10:14 -07:00
example3.js node_tests: Replace `set_global` with `mock_esm` in example4.js. 2021-07-22 09:47:47 -04:00
example4.js node_tests: Replace `set_global` with `mock_esm` in example4.js. 2021-07-22 09:47:47 -04:00
example5.js resize: Don't call resize_page_components for new messages. 2022-10-25 10:53:48 -07:00
example6.js node_tests: Enforce 100% coverage for test files. 2022-04-10 19:31:56 -04:00
example7.js recent_topics: Add mention indicator in row for unread topics. 2022-10-19 16:26:42 -07:00
example8.js node_tests: Remove low-hanging uses of __Rewire__. 2022-07-13 16:27:30 -07:00
fenced_code.js
fetch_status.js
filter.js filter: Show pm_with title with near narrow links. 2022-10-28 17:41:47 -07:00
fold_dict.js node_tests: Fix incorrect usage of assert.throws. 2021-08-10 13:18:53 -07:00
gear_menu.js gear menu: Add organization info. 2022-10-13 23:45:25 -07:00
hash_util.js people: Use names in PM urls instead of emails. 2022-10-25 10:42:00 -07:00
hashchange.js recent-topics: Update hash for view to be "#recent". 2022-10-25 11:03:44 -07:00
hotkey.js hotkey: Use "m" hotkey for moving messages. 2022-10-19 12:02:22 -07:00
i18n.js left_side_userlist: Remove feature from frontend. 2022-11-14 12:23:55 -08:00
input_pill.js compose: Offer narrow to compose target button for private messages. 2022-10-05 11:11:28 -07:00
internal_url.js hash_util: Rename _uri functions to _url. 2022-03-01 18:14:31 -08:00
keydown_util.js keydown_util: Check Enter events properly for IME edge cases. 2022-11-02 15:42:42 -07:00
lazy_set.js custom_check: Avoid use of assert to avoid confusion with assert.equal. 2021-06-10 09:15:57 -07:00
lightbox.js js: Skip redundant jQuery object reconstruction. 2022-08-18 16:11:13 -07:00
linkifiers.js markdown: Nest get_linkifiers_regexes(). 2022-04-05 12:42:15 +00:00
list_cursor.js node_tests: Enforce 100% coverage for test files. 2022-04-10 19:31:56 -04:00
list_widget.js js: Use .empty() instead of .html(""). 2022-08-17 16:04:55 -07:00
markdown.js node_tests: Remove low-hanging uses of __Rewire__. 2022-07-13 16:27:30 -07:00
markdown_parse.js user_groups: Swap parameter order in is_direct_member_of function. 2022-05-05 13:48:01 -07:00
message_edit.js message_edit: Do not allow moving locally echoed or failed messages. 2022-10-23 20:38:05 -07:00
message_events.js message_lists: Add a function to return rendered message_lists. 2022-08-18 12:30:30 -07:00
message_fetch.js message_util: Avoid unnecessary unreads work processing new messages. 2022-10-25 10:53:48 -07:00
message_flags.js unread_ops: Add function to mark PM threads as read. 2022-10-24 10:25:18 -07:00
message_list.js message_lists: Remove cases for table_name being undefined. 2022-08-18 12:30:30 -07:00
message_list_data.js user_topics: Rename muted_topics.js to user_topics.js. 2022-08-16 14:39:24 -07:00
message_list_view.js node_tests: Minor cleanup for "subject" references. 2022-10-04 11:59:22 -07:00
message_store.js zjsunit: Merge with_field, with_…_disallowed into with_overrides. 2022-07-11 11:35:49 -07:00
muted_users.js muted_users: Change incorrect test label. 2022-09-22 08:40:28 -07:00
narrow.js narrow-banner: Update empty title for "pm-with" multiple users. 2022-11-08 11:07:38 -08:00
narrow_activate.js user_topics: Rename muted_topics.js to user_topics.js. 2022-08-16 14:39:24 -07:00
narrow_local.js resolved_topic: Implement resolve, unresolve, and display. 2022-03-07 21:35:00 -08:00
narrow_state.js node_tests: Minor cleanup for "subject" references. 2022-10-04 11:59:22 -07:00
narrow_unread.js user_topics: Rename muted_topics.js to user_topics.js. 2022-08-16 14:39:24 -07:00
navbar_alerts.js node_tests: Enforce 100% coverage for test files. 2022-04-10 19:31:56 -04:00
notifications.js user_topics: Rename muted_topics.js to user_topics.js. 2022-08-16 14:39:24 -07:00
password.js node_tests: Enforce 100% coverage for test files. 2022-04-10 19:31:56 -04:00
peer_data.js stream_data: Rename is_subscribed to is_subscribed_by_name. 2021-11-22 15:44:30 -08:00
people.js people: Use names in PM urls instead of emails. 2022-10-25 10:42:00 -07:00
people_errors.js node_tests: Remove low-hanging uses of __Rewire__. 2022-07-13 16:27:30 -07:00
pill_typeahead.js input_pill: Remove random IDs. 2022-07-11 11:44:47 -07:00
pm_conversations.js user_topics: Rename set_muted_topics to set_user_topics. 2022-08-29 17:24:08 -07:00
pm_list.js pm_section: Create collapsible private messages section. 2022-10-26 13:47:08 -07:00
pm_list_data.js people: Use names in PM urls instead of emails. 2022-10-25 10:42:00 -07:00
poll_widget.js js: Prefix jQuery object variable names with $. 2022-03-16 12:52:07 -07:00
popovers.js people: Use names in PM urls instead of emails. 2022-10-25 10:42:00 -07:00
presence.js node_tests: Remove low-hanging uses of __Rewire__. 2022-07-13 16:27:30 -07:00
reactions.js reactions: Implement display_emoji_reaction_users setting. 2022-10-27 12:41:51 -07:00
recent_senders.js node tests: Use {override} in run_test. 2021-06-16 12:55:53 -04:00
recent_topics.js recent_topics: Improve behaviour of inplace rerender. 2022-11-04 13:59:20 -07:00
reload.js reload: Preserve unused reload tokens for a week. 2022-09-23 10:59:59 -07:00
reload_state.js node tests: Use {override} in run_test. 2021-06-16 12:55:53 -04:00
rendered_markdown.js js: Use .empty() instead of .html(""). 2022-08-17 16:04:55 -07:00
resolved_topic.js resolved_topic: Implement resolve, unresolve, and display. 2022-03-07 21:35:00 -08:00
rtl.js js: Prefix jQuery object variable names with $. 2022-03-16 12:52:07 -07:00
schema.js
scroll_util.js js: Prefix jQuery object variable names with $. 2022-03-16 12:52:07 -07:00
search_future.js search_suggestions: Fix bug where space in stream names did not show. 2022-08-18 11:22:08 -07:00
search_now.js search_suggestions: Fix bug where space in stream names did not show. 2022-08-18 11:22:08 -07:00
search_pill.js refactor: Change description to description_html in search suggestions. 2022-08-16 13:56:33 -07:00
search_suggestion_future.js search_suggestion: Show profile pictures in autocomplete suggestions. 2022-08-16 14:17:42 -07:00
search_suggestion_now.js search_suggestion: Show profile pictures in autocomplete suggestions. 2022-08-16 14:17:42 -07:00
server_events.js node_tests: Enforce 100% coverage for test files. 2022-04-10 19:31:56 -04:00
settings_bots.js settings_bots: Move "Add a new bot" tab inside a modal. 2022-09-23 12:06:51 -07:00
settings_config.js settings_config: Pass settings object as parameter to all_notifications. 2021-09-16 15:46:41 -07:00
settings_data.js settings: Add user_can_create_web_public_streams function. 2021-11-23 10:48:20 -08:00
settings_emoji.js zjsunit: Wire $ to zjquery by default. 2021-06-16 12:55:53 -04:00
settings_muted_topics.js user_topics: Rename muted_topics.js to user_topics.js. 2022-08-16 14:39:24 -07:00
settings_muted_users.js node_tests: Remove low-hanging uses of __Rewire__. 2022-07-13 16:27:30 -07:00
settings_org.js settings: Refactor code for realm message retention setting. 2022-11-10 16:13:49 -08:00
settings_profile_fields.js custom_profile_fields: Toggle new "display_in_profile_summary" field. 2022-09-20 17:03:57 -07:00
settings_realm_domains.js realm_domains_modal: Migrate modal to dialog_widget. 2022-07-07 14:56:45 -07:00
settings_user_groups_legacy.js user groups: Rename settings_user_groups to settings_user_groups_legacy. 2022-08-23 17:30:39 -07:00
spoilers.js js: Prefix jQuery object variable names with $. 2022-03-16 12:52:07 -07:00
starred_messages.js node_tests: Remove low-hanging uses of __Rewire__. 2022-07-13 16:27:30 -07:00
stream_create_subscribers_data.js node_tests: Remove low-hanging uses of __Rewire__. 2022-07-13 16:27:30 -07:00
stream_data.js stream_list: Sort muted to end of sections and add labels. 2022-08-06 21:59:23 -07:00
stream_edit.js stream settings: Allow modifying of email address. 2022-11-04 14:22:27 -07:00
stream_events.js stream_events: Use update_unread_counts API. 2022-10-25 10:53:48 -07:00
stream_list.js left_sidebar: Hide stream section separator when there is only one. 2022-11-09 17:34:58 -08:00
stream_pill.js node tests: Directly test simple stream_pill helpers. 2022-02-22 16:29:36 -08:00
stream_search.js js: Prefix jQuery object variable names with $. 2022-03-16 12:52:07 -07:00
stream_settings_ui.js node_tests: Enforce 100% coverage for test files. 2022-04-10 19:31:56 -04:00
stream_sort.js stream_list: Sort muted to end of sections and add labels. 2022-08-06 21:59:23 -07:00
stream_topic_history.js recent_topics: Add mention indicator in row for unread topics. 2022-10-19 16:26:42 -07:00
submessage.js node tests: Use {override} in run_test. 2021-06-16 12:55:53 -04:00
support.js js: Prefix jQuery object variable names with $. 2022-03-16 12:52:07 -07:00
templates.js zjsunit: Optionally exercise template code. 2021-06-15 12:33:26 -04:00
timerender.js js: Fix no-jquery/no-parse-html-literal. 2022-03-17 13:16:34 -07:00
top_left_corner.js pm_list: Handle narrow functions separately for pm_section. 2022-08-12 15:26:00 -07:00
topic_generator.js unread: Rename function name for clarity. 2022-10-24 10:23:20 -07:00
topic_list_data.js recent_topics: Add mention indicator in row for unread topics. 2022-10-19 16:26:42 -07:00
transmit.js node_tests: Remove low-hanging uses of __Rewire__. 2022-07-13 16:27:30 -07:00
typeahead.js emoji_picker: Allow filtering emojis by unicode characters in emoji picker. 2022-05-31 10:02:57 -07:00
typeahead_helper.js node_tests: Remove low-hanging uses of __Rewire__. 2022-07-13 16:27:30 -07:00
typing_data.js js: Split out muted_users module from muting. 2021-06-30 16:32:55 -07:00
typing_events.js node_tests: Remove low-hanging uses of __Rewire__. 2022-07-13 16:27:30 -07:00
typing_status.js node_tests: Remove low-hanging uses of __Rewire__. 2022-07-13 16:27:30 -07:00
unread.js unread: Pop unread_msgs from page_params for initialization. 2022-10-27 13:03:54 -07:00
upgrade.js node_tests: Enforce 100% coverage for test files. 2022-04-10 19:31:56 -04:00
upload.js dependencies: Upgrade JavaScript dependencies. 2022-10-11 10:50:57 -07:00
user_events.js settings: Make banner asking to confirm new email sticky. 2022-01-05 14:42:23 -08:00
user_group_pill.js node tests: Directly test user_group_pill helpers. 2022-02-22 16:29:36 -08:00
user_groups.js user_groups: Pass user group object instead of id to get_recursive_subgroups. 2022-05-17 14:51:55 -07:00
user_pill.js status_emoji: Show status emoji in compose_pm pills. 2022-02-11 13:30:08 -08:00
user_search.js js: Prefix jQuery object variable names with $. 2022-03-16 12:52:07 -07:00
user_status.js frontend: Implement 'invisible mode' feature. 2022-09-23 12:27:54 -07:00
user_topics.js user_topics: Rename muting.js to user_topics.js. 2022-09-22 08:40:28 -07:00
util.js reload: Remove get_reload_topic. 2022-10-04 11:59:22 -07:00
vdom.js pm_section: Create collapsible private messages section. 2022-10-26 13:47:08 -07:00
watchdog.js zjsunit: Defer run_test execution to the end of the test module. 2022-08-18 08:55:31 -07:00
widgetize.js js: Prefix jQuery object variable names with $. 2022-03-16 12:52:07 -07:00
zblueslip.js docs: Fix many spelling mistakes. 2022-02-07 18:51:06 -08:00
zjquery.js js: Fix no-jquery/no-parse-html-literal. 2022-03-17 13:16:34 -07:00