zulip/web/tests
Prakhar Pratyush 00fb8f3014 settings: Move the user-privacy settings related code at one place.
This commit makes small refactoring to place all the user-privacy
settings code in 'server_events_dispatch.js' at one place and use
a common function 'settings_account.update_privacy_settings_box' to
update the UI.

This also helps in early return instead of executing a lot
of `if` statements related to user-preferences settings.
2024-09-10 09:34:24 -07:00
..
lib web: Use util.the for accessing element of single-item lists. 2024-08-20 09:48:15 -07:00
templates popovers: Add hotkey hints support via a new handlebar template. 2024-04-11 15:57:24 -07:00
activity.test.js presence: Sync presence indicators across the frontend. 2024-07-10 11:01:44 -07:00
alert_words.test.js alert_words: Highlight overlapping alert words more accurately. 2024-03-19 11:20:16 -07:00
alert_words_ui.test.js node tests: Use noop helper function pattern in test files. 2023-12-14 14:51:33 -08:00
blueslip_stacktrace.test.js upload: Convert module to TypeScript. 2024-05-15 10:53:09 -07:00
bot_data.test.js models: Extract zerver.models.users. 2023-12-16 22:08:44 -08:00
browser_history.test.js settings: Rename default_view and escape_navigates_to_default_view. 2023-10-26 11:00:12 -07:00
buddy_data.test.js settings: Use page_params.is_spectator field for spectator checks. 2024-06-14 17:11:23 -07:00
buddy_list.test.js typos: Fix typos caught by mwic. 2024-05-20 13:55:00 -07:00
channel.test.js channel: Use base_page_params. 2024-02-27 21:18:00 -05:00
color_data.test.js
common.test.js search: Remove is:dm suggestion from get_operator_suggestions. 2024-06-17 16:30:40 -07:00
components.test.js toggle: Add register_event_handlers to toggle prototype. 2024-06-17 17:16:21 -07:00
compose.test.js echo: Fix incorrect check for message `topic`. 2024-08-13 09:37:35 -07:00
compose_actions.test.js compose: Fix restoring big drafts freezes the app. 2024-08-13 07:53:30 -07:00
compose_closed_ui.test.js message_list: Only update selected id and banner for current list. 2024-05-03 12:42:22 -07:00
compose_fade.test.js compose fade users: Remove fade logic in favor of buddy list split. 2024-02-22 16:05:27 -08:00
compose_pm_pill.test.js input_pill: Remove display_value in favor of module-specific values. 2024-08-01 17:31:59 -07:00
compose_state.test.js stream picker: Remove stream colorblock. 2024-03-15 11:11:04 -07:00
compose_ui.test.js web: Use util.the for accessing element of single-item lists. 2024-08-20 09:48:15 -07:00
compose_validate.test.js settings: Add two realm settings to restrict direct messages. 2024-07-08 19:34:17 -07:00
compose_video.test.js compose_call_ui: Convert module to TypeScript. 2024-06-02 21:49:49 -07:00
composebox_typeahead.test.js user_groups: Add can_manage_group field to user_group object. 2024-08-20 09:28:05 -07:00
copy_and_paste.test.js compose: Transform stream/topic urls on paste. 2024-07-12 15:15:10 -07:00
deprecated_feature_notice.test.js hotkey: Add keyboard shortcut to navigate to starred messages view. 2024-08-23 15:49:31 -07:00
dispatch.test.js settings: Move the user-privacy settings related code at one place. 2024-09-10 09:34:24 -07:00
dispatch_subs.test.js tests: Replace unneeded override_rewire uses by whole-module mocks. 2024-03-15 17:29:47 -04:00
drafts.test.js drafts: Show saved time in UTC format in a tooltip. 2024-07-01 15:13:21 -07:00
echo.test.js echo: Extract the waiting for id and ack into separate module. 2024-08-14 18:24:56 -07:00
emoji.test.js
emoji_picker.test.js emoji_names: Rebuild with CLDR 45, emoji-data 15.1. 2024-07-17 22:49:52 -07:00
example1.test.js node tests: Add make_stream helper to create streams in node tests. 2024-07-31 22:26:55 -07:00
example2.test.js node tests: Add make_stream helper to create streams in node tests. 2024-07-31 22:26:55 -07:00
example3.test.js node tests: Add make_stream helper to create streams in node tests. 2024-07-31 22:26:55 -07:00
example4.test.js presence: Frontend implementation of the last_update_id API. 2024-06-07 13:57:40 -07:00
example5.test.js rename: Rename "huddle_data.ts" to "direct_message_group_data.ts". 2024-06-14 18:07:07 -07:00
example6.test.js node tests: Use noop helper function pattern in test files. 2023-12-14 14:51:33 -08:00
example7.test.js node tests: Add make_stream helper to create streams in node tests. 2024-07-31 22:26:55 -07:00
example8.test.js narrow_state: Use `message_lists.current` to return current filter. 2024-02-24 08:31:18 -08:00
fenced_code.test.js
fetch_status.test.js
filter.test.js narrow: Fix last unread when narrowed to a `dm` message using `with`. 2024-09-03 16:35:35 -07:00
fold_dict.test.js
gear_menu_util.test.js page_params: Split out state data for realm. 2024-02-15 10:22:52 -08:00
hash_util.test.js test_fixtures: Add 'message_link_test_cases' test fixture. 2024-06-17 10:42:32 -07:00
hashchange.test.js settings: Unite user settings into a single panel. 2024-06-17 17:16:21 -07:00
hotkey.test.js user_card_popover: Move manage user menu options to user card popover. 2024-07-12 13:03:40 -07:00
i18n.test.js i18n: Use user_notification_settings for tr_tag tests. 2024-07-15 12:35:41 -07:00
input_pill.test.js web: Use util.the for accessing element of single-item lists. 2024-08-20 09:48:15 -07:00
internal_url.test.js
keydown_util.test.js
lazy_set.test.js lazy set: Increase code coverage. 2023-10-31 16:06:07 -07:00
left_sidebar_navigation_area.test.js left sidebar: Improve how starred message count is hidden. 2024-08-27 13:08:29 -07:00
linkifiers.test.js Revert "linkifiers: Match JS implementation to server implementation." 2023-11-16 14:59:48 -08:00
list_cursor.test.js node tests: Use noop helper function pattern in test files. 2023-12-14 14:51:33 -08:00
list_widget.test.js list_widget: Reduce TypeScript wreckage. 2024-06-07 11:54:37 -07:00
markdown.test.js user_card_popover: Show popover on all .messagebox user mention. 2024-08-15 16:28:08 -07:00
markdown_parse.test.js markdown: Remove wrapper around get_topic_links. 2024-02-01 12:12:06 -08:00
message_edit.test.js message_edit: Convert module to typescript. 2024-08-19 16:33:04 -07:00
message_events.test.js message_helper: Convert module to typescript. 2024-05-29 16:45:36 -07:00
message_flags.test.js web-narrow: Update operators to use channel and channels. 2024-04-24 17:03:36 -07:00
message_list.test.js message_list: Use stream id instead of name in update_trailing_bookend. 2024-08-15 17:16:22 -07:00
message_list_data.test.js user_topics: Always store stream name in UserTopic. 2024-03-30 16:25:34 -07:00
message_list_view.test.js message_list_view: Refactor me message calculation for typescript. 2024-08-26 08:14:57 -07:00
message_store.test.js message_events: Remove message from message_store on deletion. 2024-06-27 14:59:45 -07:00
message_view.test.js narrow_banner: Fix message view banner for dm with deactivated user. 2024-08-27 15:58:29 -07:00
muted_users.test.js
narrow_activate.test.js message_view: Select message without rerender if possible. 2024-07-21 21:03:39 -07:00
narrow_local.test.js narrow: Rename to `message_view`. 2024-06-05 12:03:59 -07:00
narrow_state.test.js narrow_state: Remove narrowed_to_topic function. 2024-05-24 10:24:16 -07:00
narrow_unread.test.js filter: Fix `adjusted_terms_if_moved` handling for non stream messages. 2024-07-15 14:00:59 -07:00
navbar_alerts.test.js page_params: Split out state data for realm. 2024-02-15 10:22:52 -08:00
notifications.test.js ui_util: Fix HTML injection bug in replace_emoji_with_text. 2024-04-03 13:11:47 -07:00
password.test.js password_quality: Convert .data("minLength") et al. to .attr. 2024-05-03 12:45:46 -07:00
peer_data.test.js page_params: Split out state data for current user. 2024-02-15 10:22:52 -08:00
people.test.js narrow_banner: Fix message view banner for dm with deactivated user. 2024-08-27 15:58:29 -07:00
people_errors.test.js compose_box: Fix order of group pm recipient pills on focus. 2024-08-27 13:21:16 -07:00
pill_typeahead.test.js input_pill: Remove display_value in favor of module-specific values. 2024-08-01 17:31:59 -07:00
pm_conversations.test.js pm_conversation: Add new has_conversation helper. 2024-07-02 19:02:41 -07:00
pm_list.test.js left_sidebar: Remove `#direct-messages-sticky-header`. 2024-07-08 11:43:02 -07:00
pm_list_data.test.js pm_list: Add search to direct message section. 2024-07-08 13:17:05 -07:00
poll_widget.test.js settings: Use page_params.is_spectator field for spectator checks. 2024-06-14 17:11:23 -07:00
popover_menus_data.test.js settings: Add `can_delete_any_message_group` setting. 2024-08-15 12:03:49 -07:00
postprocess_content.test.js thumbnails: Mark images as lazy-loaded. 2024-08-16 14:33:25 -07:00
presence.test.js settings: Use page_params.is_spectator field for spectator checks. 2024-06-14 17:11:23 -07:00
reactions.test.js message_helper: Set clean reactions when processing the raw message. 2024-05-29 16:45:36 -07:00
realm_playground.test.js pygments_data: Move data to typescript. 2024-01-24 17:06:03 -08:00
recent_senders.test.js message_util: Convert module to typescript. 2024-01-05 10:47:12 -08:00
recent_view.test.js recent_view: Let browser handle tab hotkey. 2024-06-25 14:12:19 -07:00
reload.test.js node tests: Use noop helper function pattern in test files. 2023-12-14 14:51:33 -08:00
reload_state.test.js
rendered_markdown.test.js css: Use a class for spoiler header text. 2024-09-03 10:24:40 -07:00
resolved_topic.test.js
rtl.test.js
scheduled_messages.test.js compose_send_menu_popover: Rename module to reflect broader uses. 2024-04-20 13:27:25 -07:00
scroll_util.test.js
search.test.js avatar: Stop adding &s=50 to Gravatar and Zulip avatar requests. 2024-08-13 08:57:08 -07:00
search_suggestion.test.js avatar: Stop adding &s=50 to Gravatar and Zulip avatar requests. 2024-08-13 08:57:08 -07:00
server_events.test.js user: Drop `is_mirror_dummy` field from 'user' object. 2024-08-13 09:37:35 -07:00
settings_bots.test.js web: Replace `realm_uri` with `realm_url` in frontend files. 2024-06-03 10:07:10 -07:00
settings_config.test.js web-stream-settings: Update strings for stream rename channel. 2024-04-24 14:35:04 -07:00
settings_data.test.js user_groups: Update code to check whether user can edit a user group. 2024-08-20 09:28:05 -07:00
settings_emoji.test.js
settings_muted_users.test.js node tests: Use noop helper function pattern in test files. 2023-12-14 14:51:33 -08:00
settings_org.test.js settings: Add `can_delete_any_message_group` setting. 2024-08-15 12:03:49 -07:00
settings_profile_fields.test.js settings_profile_fields: Convert Module to TypeScript. 2024-05-20 11:17:58 -07:00
settings_realm_domains.test.js settings_realm_domains: Fix implicit use of any. 2024-05-03 15:39:55 -07:00
settings_user_topics.test.js settings_user_topics: Fix implicit use of any. 2024-05-03 15:39:55 -07:00
spoilers.test.js rendered_markdown: Convert module to typescript. 2024-01-19 17:54:07 -08:00
starred_messages.test.js left sidebar: Improve how starred message count is hidden. 2024-08-27 13:08:29 -07:00
stream_create_subscribers_data.test.js stream_create: Soft remove users on clicking the remove button. 2024-06-28 15:35:56 -07:00
stream_data.test.js stream_data: Remove unused home_view_stream_names. 2024-08-15 17:16:22 -07:00
stream_edit.test.js
stream_events.test.js channel: Don't show "You subscribed to" bookend on channel creation. 2024-07-11 09:51:55 -07:00
stream_list.test.js topic_generator: Use stream id instead of stream name. 2024-08-15 17:16:22 -07:00
stream_list_sort.test.js left_sidebar: Add colon `:` to the list of stream word separators. 2024-05-03 09:20:53 -07:00
stream_pill.test.js stream_pill: Use stream id instead of stream name. 2024-08-13 09:04:59 -07:00
stream_search.test.js stream_list: Convert module to typescript. 2024-02-23 16:18:48 -08:00
stream_settings_ui.test.js stream_settings: Add Not subscribed tab to stream settings. 2024-06-04 09:49:50 -07:00
stream_topic_history.test.js stream_topic_history: Ask server for last msg id for historical topics. 2024-06-30 22:37:46 -07:00
submessage.test.js submessage: Replace bogus test data with valid objects. 2024-03-28 12:59:12 -07:00
support.test.js support: Fix implicit use of any. 2024-05-03 15:39:55 -07:00
templates.test.js hotkeys: Show Level 2 Shift key symbol for Shift key in popovers. 2024-04-11 15:57:24 -07:00
time_zone_util.test.js time_zone_util: Avoid relying on timeZoneName: "longOffset". 2023-11-29 09:57:10 -08:00
timerender.test.js timerender: Fix should_display_profile_incomplete_alert. 2024-07-09 16:42:23 -07:00
topic_generator.test.js topic_generator: Use stream id instead of stream name. 2024-08-15 17:16:22 -07:00
topic_link_util.test.js composebox_typeahead: Avoid generating broken stream-topic links. 2024-06-24 18:14:33 -07:00
topic_list_data.test.js left_sidebar: Open topic menu when clicking on follow topic icon. 2024-07-05 16:36:49 -07:00
transmit.test.js message_list: Don't always cache "Combined feed" view. 2024-04-25 09:20:43 -07:00
typeahead.test.js typeahead: Rework `sort_emojis` function. 2024-07-07 11:33:41 -07:00
typeahead_helper.test.js compose_typeahead: Show emojis in stream description typeahead. 2024-07-05 15:26:36 -07:00
typing_data.test.js settings: Add option to disable seeing typing notifications. 2024-04-16 11:38:12 -07:00
typing_events.test.js narrow_state: Use `message_lists.current` to return current filter. 2024-02-24 08:31:18 -08:00
typing_status.test.js typing_status: Use TypeScript unions for 'Recipient' type. 2024-02-07 09:12:49 -08:00
ui_util.test.js notifications: Collapse blockquotes and "user said" paragraphs. 2024-01-30 17:22:20 -08:00
unread.test.js user_topics: Always store stream name in UserTopic. 2024-03-30 16:25:34 -07:00
upload.test.js upload: Name the link based on the uploaded filename. 2024-09-09 12:40:17 -07:00
user_events.test.js settings_users: Add live-update on deactivation & reactivation. 2024-06-17 17:16:21 -07:00
user_group_pill.test.js input_pill: Remove display_value in favor of module-specific values. 2024-08-01 17:31:59 -07:00
user_groups.test.js user_groups: Add can_manage_group field to user_group object. 2024-08-20 09:28:05 -07:00
user_pill.test.js avatar: Stop adding &s=50 to Gravatar and Zulip avatar requests. 2024-08-13 08:57:08 -07:00
user_search.test.js web: Convert .data("search-results-empty") to .attr. 2024-05-03 12:45:46 -07:00
user_status.test.js emoji: Restrict reaction_type for compatibility with typeahead.Emoji. 2024-05-16 14:51:28 -07:00
user_topics.test.js user_topics: Always store stream name in UserTopic. 2024-03-30 16:25:34 -07:00
user_topics_ui.test.js user_topics_ui: Fix 'toggle_topic_visibility_policy' behavior. 2024-08-14 13:20:58 -07:00
util.test.js util: Use blueslip error for util.the instead of an assert. 2024-09-03 13:49:30 -07:00
vdom.test.js eslint: Fix no-jquery/no-append-html errors that need test changes. 2024-04-04 10:11:57 -07:00
watchdog.test.js watchdog: Handle exception in `callback`. 2023-11-19 15:04:58 -08:00
widgetize.test.js widgets: Cache event handler instead of entire jquery for each widget. 2024-05-08 16:47:07 -07:00
zblueslip.test.js
zjquery.test.js