Make browsers configurable through ENV E2E_BROWSERS

This commit is contained in:
Chi Vinh Le
2017-12-19 14:42:29 +01:00
parent 4116e206a3
commit 71f0887a82
+3 -3
View File
@@ -13,12 +13,12 @@ E2E_WAIT_FOR_TIMEOUT=${E2E_WAIT_FOR_TIMEOUT:-5000}
# IE 64bit has issues with receiving keyboard input. Let's wait for them to fix it.
# FIXME: disabled firefox,edge until fixing pass is done
# BROWSERS="chrome,firefox,edge" #ie safari
BROWSERS="chrome"
# E2E_BROWSERS=${E2E_BROWSERS:-chrome,firefox,edge} #ie safari
E2E_BROWSERS=${E2E_BROWSERS:-chrome}
if [[ "${CIRCLE_BRANCH}" == "master" && -n "$BROWSERSTACK_KEY" ]]; then
echo Testing on browserstack
yarn e2e --reports-folder "$REPORTS_FOLDER" --bs-key "$BROWSERSTACK_KEY" --retries "$E2E_MAX_RETRIES" --timeout "$E2E_WAIT_FOR_TIMEOUT" --browsers $BROWSERS
yarn e2e --reports-folder "$REPORTS_FOLDER" --bs-key "$BROWSERSTACK_KEY" --retries "$E2E_MAX_RETRIES" --timeout "$E2E_WAIT_FOR_TIMEOUT" --browsers "$E2E_BROWSERS"
else
# When browserstack is not available test locally using chrome headless.
echo Testing locally