zulip/frontend_tests
sahil839 0452d8e175 settings_data: Add 'user_can_subscribe_other_users' helper.
This commit adds 'user_can_subscribe_other_users' helper in
settings_data.js amd this helper will replaced all the
instances of page_params.can_subscribe_other_users.

We also remove the incorrect code in server_events_dispatch.js
where we were updating page_params.can_invite_to_stream which
is actually not used in other parts of code and instead of it
page_params.can_subscribe_other_users is used to check whether
user is allowed to subscribe others or not. This code was
added in 272ed9068.
Though this could have been done in a different commit, but as
we are adding the code to use the correct updated value in this
commit only, this has been fixed here.

There is also no need of adding that complex logic to update the
correct 'page_params.can_subscribe_other_users' field on
'realm_update' event, as we are using user_can_subscribe_other_users
helper and thus we always use the updated values to check whether
the user is allowed to subscribe others or not.
2021-04-28 15:37:00 -07:00
..
node_tests settings_data: Add 'user_can_subscribe_other_users' helper. 2021-04-28 15:37:00 -07:00
puppeteer_lib test users: Add an escape char to a test username. 2021-04-13 11:42:06 -07:00
puppeteer_tests compose: Use `class` to find `markdown_preview` related elements. 2021-04-27 10:06:25 -07:00
zjsunit node_tests: Fix example jQuery mock in comment. 2021-04-23 11:16:42 -07:00