zulip/frontend_tests/node_tests
YashRE42 30065b4ee8 navbar: Increase the click area of to initiate search.
This commit:
- Switches margin for padding on the search closed icon, to ensure we
  cover the region to the right of icon as clickable area.
- Applies the click handler that initiates the search to the second
  last element of the navbar:
  - This will most commonly be the narrow_description element, but may
    also be the entire navbar eg in the case of "ALL" or "starred".
    Applying this change to user names in "group-pm-with: ..." based
    narrows is a little questionable, but there are no other triggers
    on these names so this change makes sense for now.
  - The narrow_description may also contain links, which need to be
    handled correctly so that the behave like links should. We work
    around the onClick on the narrow_description, by applying a
    handler to <a> tags and invoking stopPropagation.
- We also add CSS to change the cursor to a pointer to make the
  search icon change color on hover over the clickable area to
  indicate that the search box can be opened with a single click.
- However, since <a> tags are handled differently, we add a hover
  listener which makes sure it behaves appropriately. We also increase
  the vertical padding of the <a> tags so they cover the entire
  vertical navbar region.
2020-04-23 15:37:51 -07:00
..
.eslintrc.json lint: Add JS indentation eslint rules for node_tests. 2018-05-06 19:35:18 -07:00
activity.js zblueslip: Run blueslip.reset after each test. 2020-04-20 08:17:20 -04:00
alert_words.js minor: Clean up blank lines in tests. 2020-04-03 12:56:49 -04:00
alert_words_ui.js alert settings: Relocate alert_word_settings_item.hbs 2020-04-18 15:50:04 -07:00
billing.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
billing_helpers.js upgrade: Set the default billing period to monthly. 2020-04-17 08:57:15 -07:00
blueslip_stacktrace.js blueslip: Make stack trace more readable. 2019-10-31 13:47:54 -07:00
bot_data.js bot_data: Remove set_can_admin. 2020-03-24 20:40:19 -07:00
buddy_data.js node tests: Remove most test_log length assertions. 2020-04-08 11:37:27 -04:00
buddy_list.js node tests: Auto-include zblueslip for node tests. 2020-04-03 12:56:49 -04:00
channel.js zblueslip: Run blueslip.reset after each test. 2020-04-20 08:17:20 -04:00
color_data.js js: Automatically convert _.each to for…of. 2020-02-07 14:09:47 -08:00
colorspace.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
common.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
components.js stream settings: Correct alignment of filter streams div. 2020-04-21 16:59:41 -07:00
compose.js zblueslip: Run blueslip.reset after each test. 2020-04-20 08:17:20 -04:00
compose_actions.js minor: Clean up blank lines in tests. 2020-04-03 12:56:49 -04:00
compose_fade.js node test: Clean up ad hoc mocks for blueslip. 2020-04-03 12:56:49 -04:00
compose_pm_pill.js Rename get_realm_persons() to get_realm_users(). 2020-03-22 10:55:11 -07:00
compose_ui.js node test: Clean up ad hoc mocks for blueslip. 2020-04-03 12:56:49 -04:00
composebox_typeahead.js typeahead: Show only active users in mention typeaheads. 2020-04-22 16:50:24 -07:00
copy_and_paste.js dependencies: Upgrade JavaScript dependencies. 2020-04-18 13:17:01 -07:00
dispatch.js settings: Refactor notifications_stream setting to use DropdownListWidget. 2020-04-22 17:57:16 -07:00
drafts.js node test: Clean up ad hoc mocks for blueslip. 2020-04-03 12:56:49 -04:00
echo.js node tests: Auto-include zblueslip for node tests. 2020-04-03 12:56:49 -04:00
emoji.js zblueslip: Run blueslip.reset after each test. 2020-04-20 08:17:20 -04:00
emoji_picker.js emoji_codes: Replace JS module with JSON module. 2020-02-12 10:09:12 -08:00
fenced_code.js text: Fix some typos (most of them found and fixed by codespell). 2020-03-27 17:25:56 -07:00
fetch_status.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
filter.js filter: Use ', ' to separate names in PM title. 2020-04-17 13:13:31 -07:00
fold_dict.js zblueslip: Run blueslip.reset after each test. 2020-04-20 08:17:20 -04:00
general.js topic_data: Rename `topic_data` module to `stream_topic_history`. 2020-04-16 20:11:04 -07:00
hash_util.js search/hash_util: Parse negated searches properly. 2020-03-22 11:29:02 -07:00
hashchange.js zblueslip: Run blueslip.reset after each test. 2020-04-20 08:17:20 -04:00
hotkey.js emoji_codes: Replace JS module with JSON module. 2020-02-12 10:09:12 -08:00
i18n.js node: Fix i18n node tests following string replacement. 2020-03-25 19:36:43 -07:00
input_pill.js zblueslip: Run blueslip.reset after each test. 2020-04-20 08:17:20 -04:00
keydown_util.js keydown_util: Ignore alt-arrow and similar things. 2018-12-04 12:24:39 -08:00
lazy_set.js zblueslip: Run blueslip.reset after each test. 2020-04-20 08:17:20 -04:00
lightbox.js node tests: Remove most test_log length assertions. 2020-04-08 11:37:27 -04:00
list_cursor.js zblueslip: Run blueslip.reset after each test. 2020-04-20 08:17:20 -04:00
list_render.js list_render: Add replace_list_data(). 2020-04-15 15:13:26 -07:00
markdown.js zblueslip: Run blueslip.reset after each test. 2020-04-20 08:17:20 -04:00
message_edit.js echo: Further reduce local_id string vs. number confusion. 2020-02-12 10:39:01 -08:00
message_events.js message_edit: Refactor .save and .end to separate inline topic edits. 2020-04-22 16:25:37 -07:00
message_fetch.js minor: Clean up blank lines in tests. 2020-04-03 12:56:49 -04:00
message_flags.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
message_list.js node tests: Auto-include zblueslip for node tests. 2020-04-03 12:56:49 -04:00
message_list_data.js node tests: Remove most test_log length assertions. 2020-04-08 11:37:27 -04:00
message_list_view.js minor: Clean up blank lines in tests. 2020-04-03 12:56:49 -04:00
message_store.js zblueslip: Run blueslip.reset after each test. 2020-04-20 08:17:20 -04:00
muting.js node test: Remove unnecessary zrequires. 2020-04-22 18:54:27 -04:00
narrow.js topic_data: Rename `topic_data` module to `stream_topic_history`. 2020-04-16 20:11:04 -07:00
narrow_activate.js node tests: Auto-include zblueslip for node tests. 2020-04-03 12:56:49 -04:00
narrow_local.js node tests: Just set i18n every time. 2020-02-28 17:11:24 -08:00
narrow_state.js node tests: Auto-include zblueslip for node tests. 2020-04-03 12:56:49 -04:00
narrow_unread.js node tests: Auto-include zblueslip for node tests. 2020-04-03 12:56:49 -04:00
notifications.js node tests: Auto-include zblueslip for node tests. 2020-04-03 12:56:49 -04:00
password.js minor: Clean up blank lines in tests. 2020-04-03 12:56:49 -04:00
people.js typeahead: Show only active users in mention typeaheads. 2020-04-22 16:50:24 -07:00
people_errors.js zblueslip: Run blueslip.reset after each test. 2020-04-20 08:17:20 -04:00
pm_conversations.js ui_init: Pass params to pm_conversations.recent. 2020-02-27 11:10:13 -08:00
pm_list.js node tests: Auto-include zblueslip for node tests. 2020-04-03 12:56:49 -04:00
poll_widget.js zblueslip: Run blueslip.reset after each test. 2020-04-20 08:17:20 -04:00
popovers.js minor: Clean up blank lines in tests. 2020-04-03 12:56:49 -04:00
presence.js zblueslip: Run blueslip.reset after each test. 2020-04-20 08:17:20 -04:00
reactions.js zblueslip: Run blueslip.reset after each test. 2020-04-20 08:17:20 -04:00
recent_senders.js util.js: Remove util from window. 2020-02-15 12:20:20 -08:00
rtl.js util.js: Remove util from window. 2020-02-15 12:20:20 -08:00
schema.js lint: Fix comma spacing in node tests. 2018-12-07 13:14:28 -08:00
scroll_util.js zblueslip: Run blueslip.reset after each test. 2020-04-20 08:17:20 -04:00
search.js navbar: Improve structure & styling for top navbar. 2020-04-17 13:35:44 -07:00
search_legacy.js typeahead: Close/open typeahead with searchbox. 2020-04-17 13:37:04 -07:00
search_pill.js util.js: Remove util from window. 2020-02-15 12:20:20 -08:00
search_suggestion.js topic_data: Rename `topic_data` module to `stream_topic_history`. 2020-04-16 20:11:04 -07:00
search_suggestion_legacy.js topic_data: Rename `topic_data` module to `stream_topic_history`. 2020-04-16 20:11:04 -07:00
server_events.js zblueslip: Run blueslip.reset after each test. 2020-04-20 08:17:20 -04:00
settings_bots.js node tests: Just set i18n every time. 2020-02-28 17:11:24 -08:00
settings_data.js settings: Add EMAIL_ADDRESS_VISIBILITY_NOBODY. 2020-03-06 16:34:08 -08:00
settings_muting.js muting: Fix real time sync of muted topics. 2020-04-22 15:07:15 -07:00
settings_org.js settings: Simplify settings_list_widget interface. 2020-04-22 17:57:16 -07:00
settings_profile_fields.js minor: Clean up blank lines in tests. 2020-04-03 12:56:49 -04:00
settings_user_groups.js typeahead: Update for email_address_visibility settings. 2020-04-20 20:53:39 -07:00
stream_data.js stream_data: Create realm_has_notifications_stream(). 2020-04-22 17:57:16 -07:00
stream_events.js stream edit: Fix real-time sync of stream notification setting. 2020-04-01 14:40:41 -07:00
stream_list.js topic_data: Rename `topic_data` module to `stream_topic_history`. 2020-04-16 20:11:04 -07:00
stream_search.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
stream_sort.js node tests: Just set i18n every time. 2020-02-28 17:11:24 -08:00
stream_topic_history.js stream_topic_history: Fix incorrectly migrated field name. 2020-04-17 13:11:27 -07:00
submessage.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
subs.js Add stream sorting widget to subscriptions page 2020-04-19 15:07:37 -04:00
support.js js: Automatically convert var to let and const in most files. 2019-11-03 12:42:39 -08:00
timerender.js node tests: Just set i18n every time. 2020-02-28 17:11:24 -08:00
top_left_corner.js minor: Clean up blank lines in tests. 2020-04-03 12:56:49 -04:00
topic_generator.js zblueslip: Run blueslip.reset after each test. 2020-04-20 08:17:20 -04:00
topic_list_data.js topic_data: Rename `topic_data` module to `stream_topic_history`. 2020-04-16 20:11:04 -07:00
transmit.js zblueslip: Run blueslip.reset after each test. 2020-04-20 08:17:20 -04:00
typeahead.js js: Convert _.filter(a, …) to a.filter(…). 2020-02-10 14:08:12 -08:00
typeahead_helper.js minor: Clean up blank lines in tests. 2020-04-03 12:56:49 -04:00
typing_data.js minor: Clean up blank lines in tests. 2020-04-03 12:56:49 -04:00
typing_status.js text: Fix some typos (most of them found and fixed by codespell). 2020-03-27 17:25:56 -07:00
ui.js node tests: Just set i18n every time. 2020-02-28 17:11:24 -08:00
ui_init.js navbar: Increase the click area of to initiate search. 2020-04-23 15:37:51 -07:00
unread.js node test: Remove unnecessary zrequires. 2020-04-22 18:54:27 -04:00
upgrade.js upgrade: Set the default billing period to monthly. 2020-04-17 08:57:15 -07:00
upload.js file uploads: Internationalize upload status text. 2020-04-18 21:22:47 -07:00
user_events.js zblueslip: Run blueslip.reset after each test. 2020-04-20 08:17:20 -04:00
user_groups.js zblueslip: Run blueslip.reset after each test. 2020-04-20 08:17:20 -04:00
user_pill.js Rename people.add_in_realm to people.add(). 2020-03-22 10:55:11 -07:00
user_status.js zblueslip: Implement tracking extra/lesser blueslip calls. 2020-04-20 08:17:20 -04:00
util.js node tests: Auto-include zblueslip for node tests. 2020-04-03 12:56:49 -04:00
vdom.js node tests: Remove most test_log length assertions. 2020-04-08 11:37:27 -04:00
widgetize.js zblueslip: Run blueslip.reset after each test. 2020-04-20 08:17:20 -04:00
zblueslip.js zblueslip: Implement tracking extra/lesser blueslip calls. 2020-04-20 08:17:20 -04:00
zjquery.js minor: Clean up blank lines in tests. 2020-04-03 12:56:49 -04:00