zulip_test: Re-export internal functions used by Puppeteer tests.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-03-01 14:33:52 -08:00
committed by Tim Abbott
parent 60c6ba7c3a
commit 79ac5c25b5
9 changed files with 44 additions and 38 deletions

14
static/js/zulip_test.js Normal file
View File

@@ -0,0 +1,14 @@
// This module, exposed through the zulip_test global variable,
// re-exports certain internal functions so they can be used by the
// Puppeteer tests. It should not be used in the code itself.
export {
set_wildcard_mention_large_stream_threshold,
wildcard_mention_large_stream_threshold,
} from "./compose";
export {private_message_recipient} from "./compose_state";
export {get_stream_id, get_sub, get_subscriber_count} from "./stream_data";
export {get_by_user_id as get_person_by_user_id, get_user_id_from_name} from "./people";
export {last_visible as last_visible_row, id as row_id} from "./rows";
export {cancel as cancel_compose} from "./compose_actions";
export {initiate as initiate_reload} from "./reload";