casper: Move common.js and test-credentials.js to casper-lib/.

This commit is contained in:
Tim Abbott 2015-10-13 18:21:23 -04:00
parent 01f0d362d9
commit 5aa89fd6af
12 changed files with 12 additions and 12 deletions

View File

@ -2,7 +2,7 @@ var common = (function () {
var exports = {};
var test_credentials = require('../test_credentials.js').test_credentials;
var test_credentials = require('../casper_lib/test_credentials.js').test_credentials;
function timestamp() {
return new Date().getTime();

View File

@ -1,4 +1,4 @@
var common = require('../common.js').common;
var common = require('../casper_lib/common.js').common;
// Start of test script.
casper.start('http://localhost:9981/', common.initialize_casper);

View File

@ -10,7 +10,7 @@
// For example, utils.dump() prints an Object with nice formatting.
var utils = require('utils');
var common = require('../common.js').common;
var common = require('../casper_lib/common.js').common;
common.start_and_log_in();

View File

@ -1,4 +1,4 @@
var common = require('../common.js').common;
var common = require('../casper_lib/common.js').common;
common.start_and_log_in();

View File

@ -1,4 +1,4 @@
var common = require('../common.js').common;
var common = require('../casper_lib/common.js').common;
common.start_and_log_in();

View File

@ -1,4 +1,4 @@
var common = require('../common.js').common;
var common = require('../casper_lib/common.js').common;
common.start_and_log_in();

View File

@ -1,5 +1,5 @@
var common = require('../common.js').common;
var test_credentials = require('./test_credentials.js').test_credentials;
var common = require('../casper_lib/common.js').common;
var test_credentials = require('../casper_lib/test_credentials.js').test_credentials;
common.start_and_log_in();

View File

@ -1,4 +1,4 @@
var common = require('../common.js').common;
var common = require('../casper_lib/common.js').common;
function star_count() {
return casper.evaluate(function () {

View File

@ -1,4 +1,4 @@
var common = require('../common.js').common;
var common = require('../casper_lib/common.js').common;
common.start_and_log_in();

View File

@ -1,4 +1,4 @@
var common = require('../common.js').common;
var common = require('../casper_lib/common.js').common;
// Test basic tab navigation.

View File

@ -5,7 +5,7 @@ cd "$(dirname "$0")"/..
email=iago@zulip.com
password=$(python manage.py print_initial_password "$email" | fgrep "$email" | awk '{ print $2 }')
cat > frontend_tests/casper_tests/test_credentials.js <<EOF
cat > frontend_tests/casper_lib/test_credentials.js <<EOF
// Generated by tools/generate-test-credentials
var test_credentials = {default_user: {username: 'iago@zulip.com', password: '$password'}};
try { exports.test_credentials = test_credentials; } catch (e) {}