zulip/frontend_tests
Steve Howell 8deb2fc9ef toggler: Always call back to callback function.
In our toggler component (the thing that handles tabs in things
like our markdown/search help, settings/org, etc.), we have
a callback mechanism when you switch to the tab.  We were
being tricky and only calling it when the tab changed.

It turns out it's better to just always call the callback,
since these things are often in modals that open and close,
and if you open a modal for the second time, you want to do
the callback task for whichever setting you're going to.

There was actually kind of a nasty bug with this, where the
keyboard handling in the keyboard-help modal worked fine the
first time you opened it, but then it didn't work the second
time (if you focused some other element in the interim), and
it was due to not re-setting the focus to the inner modal
because we weren't calling the callback.

Of course, there are pitfalls in calling the same callbacks
twice, but our callbacks should generally be idempotent
for other reasons.
2018-06-04 09:02:58 -07:00
..
casper_lib hotkeys: Replace C with x for composing PM. 2018-04-01 16:13:05 -07:00
casper_tests bots: Add token to outgoing webhook zuliprc. 2018-06-04 08:39:24 -07:00
node_tests toggler: Always call back to callback function. 2018-06-04 09:02:58 -07:00
zjsunit node: Provide a default window object for the node tests. 2018-05-31 14:55:28 -07:00
.eslintrc.json lint: Check eslint indentation for casper tests. 2018-05-06 19:35:18 -07:00
run-casper casper tests: Show the server output inline. 2018-01-16 13:25:19 -05:00