zulip/frontend_tests/casper_tests
Steve Howell 3dde4a70d2 capser: Extract wait_for_text().
Before this we were monkey-patching in the
function `waitForSelectorText` into the
`casper` namespace, but only if you called
`common.initialize_casper`.

This would cause confusion if you expected
that function to be documented by Casper.

Now we just add the helper to `common` in
the `common` namespace.

We also avoid having to reason about what
`this` means by just using `casper` inside
the implementation of `wait_for_text` now.
And we don't bother with a return code that
none of our callers were using, anyway.
2020-03-31 10:57:08 -04:00
..
00-realm-creation.js js: Purge useless IIFEs. 2019-10-25 13:51:21 -07:00
01-login.js js: Purge useless IIFEs. 2019-10-25 13:51:21 -07:00
02-site.js docs: Convert many http URLs to https. 2020-03-26 21:35:32 -07:00
03-narrow.js casper: Use stream ids for lookups. 2020-01-29 17:01:19 -08:00
04-compose.js casper: Improve logic to confirm message sends. 2020-03-26 14:54:02 -04:00
05-subscriptions.js capser: Extract wait_for_text(). 2020-03-31 10:57:08 -04:00
06-settings.js js: Purge useless IIFEs. 2019-10-25 13:51:21 -07:00
07-stars.js capser: Extract wait_for_text(). 2020-03-31 10:57:08 -04:00
08-edit.js casper: Improve logic to confirm message sends. 2020-03-26 14:54:02 -04:00
09-navigation.js js: Purge useless IIFEs. 2019-10-25 13:51:21 -07:00
10-admin.js default streams: Fix overly aggressive typeahead. 2020-03-25 17:11:25 -07:00
11-mention.js capser: Extract wait_for_text(). 2020-03-31 10:57:08 -04:00
13-user-deactivation.js casper: Use user_ids to find user settings. 2020-01-29 17:01:19 -08:00
14-drafts.js js: Purge useless IIFEs. 2019-10-25 13:51:21 -07:00
15-delete-message.js js: Purge useless IIFEs. 2019-10-25 13:51:21 -07:00
16-copy-and-paste.js js: Purge useless IIFEs. 2019-10-25 13:51:21 -07:00