mirror of
https://github.com/wassname/talk.git
synced 2026-08-02 13:10:23 +08:00
Make browsers configurable through ENV E2E_BROWSERS
This commit is contained in:
+3
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user