diff --git a/frontend_tests/casper_lib/common.js b/frontend_tests/casper_lib/common.js index 6fdd25ea1c..3a1cf61bc9 100644 --- a/frontend_tests/casper_lib/common.js +++ b/frontend_tests/casper_lib/common.js @@ -90,12 +90,6 @@ exports.initialize_casper = function () { }); }; -exports.then_log_in = function () { - casper.then(function () { - log_in(); - }); -}; - exports.start_and_log_in = function () { var log_in_url = "http://zulip.zulipdev.com:9981/accounts/login/"; exports.init_viewport(); @@ -113,6 +107,12 @@ exports.then_click = function (selector) { }); }; +exports.then_log_in = function () { + casper.then(function () { + log_in(); + }); +}; + exports.then_log_out = function () { var menu_selector = '#settings-dropdown'; var logout_selector = 'a[href="#logout"]';