From 0e85ca9ddb5f259908400463764fd6141977b341 Mon Sep 17 00:00:00 2001 From: Julie Date: Thu, 30 Jan 2014 18:49:58 -0800 Subject: chore(testing): run end to end tests on firefox and safari as well as chrome Update the Travis and Jenkins configs to run protractor tests on Safari and Firefox as well, and make the Travis tests run output XML and turn off color. Fix tests which were failing in Firefox due to clear() not working as expected. Fix tests which were failing in Safari due to SafariDriver not understanding the minus key, and disable tests which SafariDriver has no support for. --- scripts/travis/build.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'scripts/travis') diff --git a/scripts/travis/build.sh b/scripts/travis/build.sh index 32cd8af8..b28b8e02 100755 --- a/scripts/travis/build.sh +++ b/scripts/travis/build.sh @@ -10,10 +10,13 @@ if [ $JOB = "unit" ]; then grunt test:promises-aplus grunt test:unit --browsers SL_Chrome,SL_Safari,SL_Firefox,SL_IE_8,SL_IE_9,SL_IE_10,SL_IE_11 --reporters dots elif [ $JOB = "e2e" ]; then - grunt test:protractor --sauceUser $SAUCE_USERNAME \ + export SAUCE_OPTIONS="--sauceUser $SAUCE_USERNAME \ --sauceKey $SAUCE_ACCESS_KEY \ --capabilities.tunnel-identifier=$TRAVIS_JOB_NUMBER \ - --capabilities.build=$TRAVIS_BUILD_NUMBER + --capabilities.build=$TRAVIS_BUILD_NUMBER" + grunt test:protractor $SAUCE_OPTIONS + grunt test:protractor $SAUCE_OPTIONS --browser=firefox + grunt test:protractor $SAUCE_OPTIONS --browser=safari else echo "Unknown job type. Please set JOB=unit or JOB=e2e." fi -- cgit v1.2.3