mirror of https://github.com/zulip/zulip.git
casper: Move common.js and test-credentials.js to casper-lib/.
This commit is contained in:
parent
01f0d362d9
commit
5aa89fd6af
|
@ -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();
|
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
var common = require('../common.js').common;
|
||||
var common = require('../casper_lib/common.js').common;
|
||||
|
||||
common.start_and_log_in();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
var common = require('../common.js').common;
|
||||
var common = require('../casper_lib/common.js').common;
|
||||
|
||||
common.start_and_log_in();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
var common = require('../common.js').common;
|
||||
var common = require('../casper_lib/common.js').common;
|
||||
|
||||
common.start_and_log_in();
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
|
@ -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 () {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
var common = require('../common.js').common;
|
||||
var common = require('../casper_lib/common.js').common;
|
||||
|
||||
common.start_and_log_in();
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
var common = require('../common.js').common;
|
||||
var common = require('../casper_lib/common.js').common;
|
||||
|
||||
// Test basic tab navigation.
|
||||
|
||||
|
|
|
@ -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) {}
|
||||
|
|
Loading…
Reference in New Issue