diff --git a/zephyr/tests/frontend/common.js b/zephyr/tests/frontend/common.js index 9495d4859f..9fa98c07dc 100644 --- a/zephyr/tests/frontend/common.js +++ b/zephyr/tests/frontend/common.js @@ -79,6 +79,15 @@ exports.then_log_out = function () { }); }; +exports.enable_page_console = function () { + // Call this (after casper.start) to enable printing page-context + // console.log (plus some CasperJS-specific messages) to the + // terminal. + casper.on('remote.message', function (msg) { + casper.echo(msg); + }); +}; + exports.send_message = function (type, params) { casper.waitForSelector('#left_bar_compose_' + type + '_button_big', function () { casper.click('#left_bar_compose_' + type + '_button_big'); diff --git a/zephyr/tests/frontend/tests/01-site.js b/zephyr/tests/frontend/tests/01-site.js index 7d3a5c23a3..17a02bcfc2 100644 --- a/zephyr/tests/frontend/tests/01-site.js +++ b/zephyr/tests/frontend/tests/01-site.js @@ -12,14 +12,6 @@ var utils = require('utils'); var common = require('../common.js').common; -// Uncomment this to get page-context console.log in the CasperJS output -// (plus some CasperJS-specific messages) -/* -casper.on('remote.message', function (msg) { - casper.echo(msg); -}); -*/ - common.start_and_log_in(); casper.then(function () {