zulip/frontend_tests/casper_tests
Pragati Agrawal 4df971c3c2 org settings: Add save/discard widget for realm authentication methods.
Along with this, we refactored settings_org.populate_auth_methods to use
HTML function after rendering all auth methods rows rather than appending
each row individually, which actually is a good practice.

Also in this commit, to compare `current_val` and `changed_val` in
`check_property_changed` function of the property
`realm_authentication_methods`, which are objects, and we found here
https://stackoverflow.com/a/1144249 that there is no easy way to do so. So
I followed this approach,

```js
 JSON.stringify(obj1) === JSON.stringify(obj2)
```

but before converting them to string we want the same order of keys, so we
used `sort_object_by_key` to sort `current_val` by keys and
`get_auth_method_table_data` always return `changed_val` having keys
sorted.

Since these refactor were closely related we kept them as a single commit
here.

Fixes: #11954.
2019-05-20 15:42:15 -07:00
..
00-realm-creation.js casper: Fix test broken by recent signup refactor. 2018-12-10 16:55:07 -08:00
01-login.js Avoid double redirects to /login and then to /login/. 2018-12-04 16:12:58 -08:00
02-site.js eslint: Add key-spacing linter rule. 2018-12-18 10:41:06 -08:00
03-narrow.js top left: Simplify markup for main links. 2019-01-30 13:53:20 -08:00
04-compose.js eslint: Add key-spacing linter rule. 2018-12-18 10:41:06 -08:00
05-subscriptions.js js: Fix indentation issues in casper tests. 2018-05-06 19:35:18 -07:00
06-settings.js eslint: Add key-spacing linter rule. 2018-12-18 10:41:06 -08:00
07-stars.js eslint: Add key-spacing linter rule. 2018-12-18 10:41:06 -08:00
08-edit.js eslint: Add key-spacing linter rule. 2018-12-18 10:41:06 -08:00
09-navigation.js Add stream ids to urls for stream-related narrows. 2018-02-19 09:03:11 -08:00
10-admin.js org settings: Add save/discard widget for realm authentication methods. 2019-05-20 15:42:15 -07:00
11-mention.js eslint: Add key-spacing linter rule. 2018-12-18 10:41:06 -08:00
12-toggle-message-editing.js eslint: Add key-spacing linter rule. 2018-12-18 10:41:06 -08:00
13-user-deactivation.js settings_users: Refactor some code for deactivate button. 2019-03-20 22:34:57 -07:00
14-drafts.js subject -> topic: Rename compose fields. 2018-12-09 21:28:45 -08:00
15-delete-message.js messages: Add loading spinner for deleting messages. 2019-01-25 11:07:02 -08:00
16-copy-and-paste.js copy_and_paste: Bind default copy handler to hotkeys. 2019-05-13 17:58:12 -07:00