diff --git a/.circleci/config.yml b/.circleci/config.yml index e6d65a646..f17eaacf4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -126,6 +126,7 @@ jobs: <<: *integration_job environment: <<: *integration_environment + BROWSERSTACK: true E2E_BROWSERS: chrome # test_integration_firefox will run the integration tests with firefox in @@ -134,6 +135,7 @@ jobs: <<: *integration_job environment: <<: *integration_environment + BROWSERSTACK: true E2E_BROWSERS: firefox # test_integration_edge will run the integration tests with edge in @@ -142,6 +144,7 @@ jobs: <<: *integration_job environment: <<: *integration_environment + BROWSERSTACK: true E2E_BROWSERS: edge # deploy will deploy the application as a docker image. diff --git a/.circleci/e2e.sh b/.circleci/e2e.sh index c7606668f..2d9fc25af 100755 --- a/.circleci/e2e.sh +++ b/.circleci/e2e.sh @@ -19,7 +19,7 @@ if [[ "${E2E_DISABLE}" == "true" ]]; then exit fi -if [[ -n "$BROWSERSTACK_KEY" ]]; then +if [[ "$BROWSERSTACK" == "true" && -n "$BROWSERSTACK_KEY" ]]; then echo Testing on browserstack node scripts/e2e.js --reports-folder "$REPORTS_FOLDER" --retries "$E2E_MAX_RETRIES" --timeout "$E2E_WAIT_FOR_TIMEOUT" --browsers "$E2E_BROWSERS" --browserstack else