mirror of
https://github.com/zulip/zulip.git
synced 2025-11-18 21:48:30 +00:00
minor: Move then_log_in next to then_log_out.
This commit is contained in:
@@ -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"]';
|
||||
|
||||
Reference in New Issue
Block a user