zulip/frontend_tests/casper_tests
Steve Howell 8530ed0b5e org settings: Make button-clicking code more clear.
On the "Organization settings" page, we had two Save buttons
for admins that had identical markup.  This was confusing for
people reading the code.  Now the two buttons have different
markup and individual, targeted click handlers (albeit still
calling the same function to do most of the work).

The context of this fix is that I was debugging a
Casper flake where our Casper tests were essentially clicking
on the same button twice.  Depending on the timing,
the second button click could cause a "No changes saved!"
behavior that confused the Casper test.  It is unclear whether
Casper was clicking both buttons here (in which case this fix
is necessary) or the same button twice (in which case this fix
just removes a nasty red herring for debugging).

The code still has the flaw that both buttons basically submit
the same data to the server, despite the appearance on the page
that there are two forms.  The best fix for that is probably
just to move the Language/Notifications stuff to another
panel.  I wanted to avoid touching this code altogether, but
the minor modifications here were necessary to improve the
Capser testing situation.
2018-01-16 13:25:19 -05:00
..
00-realm-creation.js form: During realm creation give option to install in root domain. 2017-10-19 16:10:14 -07:00
01-login.js casper: Always use REALMS_HAVE_SUBDOMAINS. 2017-08-24 20:44:37 -07:00
02-site.js lint: Fix several no-unused-vars eslint rule violations. 2016-12-03 18:43:47 -08:00
03-narrow.js right-sidebar: Make Search people input collapsible with search icon. 2018-01-07 15:05:03 -05:00
04-compose.js 04-compose.js: Remove waitForText. 2017-06-07 13:41:59 -07:00
05-subscriptions.js Streams: Disallow certain markdown characters in stream names. 2017-12-12 10:04:31 -06:00
06-settings.js i18n: Use language code instead of locale. 2017-10-20 11:21:26 -07:00
07-stars.js 07-stars.js: Remove waitForText. 2017-06-07 13:41:59 -07:00
08-edit.js refactor: new message content -> compose textarea. 2017-11-28 12:53:40 -08:00
09-navigation.js Enforce that only one modal can be open at any time. 2017-05-08 22:04:56 -07:00
10-admin.js settings: Create UI and backend for setting signups stream. 2017-11-21 17:39:51 -08:00
11-mention.js refactor: new message content -> compose textarea. 2017-11-28 12:53:40 -08:00
12-toggle-message-editing.js org settings: Make button-clicking code more clear. 2018-01-16 13:25:19 -05:00
13-user-deactivation.js Rename "Administration" to "Organization" in the settings UI. 2017-04-07 17:32:56 -07:00
14-drafts.js compose: Re-open the compose editor after restoring a draft. 2017-12-22 08:57:39 -05:00
15-delete-message.js casper: Fix waiting condition in message deletion tests. 2017-05-30 22:49:59 -07:00