Commit 1faa89db by Christine Lytwynec

Merge pull request #765 from edx/clytwynec/fix-acceptance-tests

fixing acceptance tests
parents 5c10c3e5 c5d30fb8
...@@ -30,22 +30,18 @@ if [ -z "$TEST_HOST" ]; then ...@@ -30,22 +30,18 @@ if [ -z "$TEST_HOST" ]; then
fi fi
export ORA_SANDBOX_URL="https://${BASIC_AUTH_USER}:${BASIC_AUTH_PASSWORD}@${TEST_HOST}" export ORA_SANDBOX_URL="https://${BASIC_AUTH_USER}:${BASIC_AUTH_PASSWORD}@${TEST_HOST}"
EXIT=0
########## Install python requirements #########
virtualenv venv virtualenv venv
source venv/bin/activate source venv/bin/activate
pip install -r requirements/test-acceptance.txt pip install -r requirements/test-acceptance.txt
######### Run acceptance tests ######### ######### Run acceptance tests #########
make test-acceptance make test-acceptance || EXIT=1
######### Run accessibility tests ######### ######### Run accessibility tests #########
make test-a11y || EXIT=1
# Unset SELENIUM_HOST so that bok-choy doesn't try to use saucelabs ######### exit with correct code #########
unset SELENIUM_HOST exit $EXIT
# AutoAuthPage times out in PhantomJS when using https, so switch to use http
export ORA_SANDBOX_URL="http://${BASIC_AUTH_USER}:${BASIC_AUTH_PASSWORD}@${TEST_HOST}"
make test-a11y
...@@ -30,10 +30,8 @@ fi ...@@ -30,10 +30,8 @@ fi
mkdir -p test/logs mkdir -p test/logs
cd test/logs cd test/logs
export SELENIUM_BROWSER=phantomjs
test_name="${1:-acceptance}" test_name="${1:-acceptance}"
echo "Running acceptance tests from ${test_name}.py against the sandbox..." echo "Running acceptance tests from ${test_name}.py against the sandbox..."
python ../acceptance/${test_name}.py python ../acceptance/${test_name}.py
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment