mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
Now that all casper tests have been migrated to puppeteer, there's no need for having casper related things. Removed the casperjs package and removed/replaced casper in few places with puppeteer. Only removed few of them which I'm confident about. Also didn't make any changes in docs as it would be easier to remove them while adding puppeteer docs.
16 lines
457 B
Bash
Executable File
16 lines
457 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
cd "$(dirname "$0")"/../..
|
|
|
|
email=desdemona@zulip.com
|
|
|
|
mkdir -p var/puppeteer
|
|
|
|
password=$(./manage.py print_initial_password "$email" | grep -F "$email" | awk '{ print $2 }')
|
|
cat > var/puppeteer/test_credentials.js <<EOF
|
|
// Generated by tools/setup/generate-test-credentials
|
|
var test_credentials = {default_user: {username: '$email', password: '$password'}};
|
|
try { exports.test_credentials = test_credentials; } catch (e) {}
|
|
EOF
|