diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index c8ca5f9c46..240f86cb29 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -78,6 +78,8 @@ jobs: run: ./gradlew build -x check -x docs-website:build - name: Smoke test run: ./smoke-test/smoke.sh + env: + CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY}} - uses: actions/upload-artifact@v2 if: always() with: diff --git a/smoke-test/tests/cypress/cypress.json b/smoke-test/tests/cypress/cypress.json index 304294cfc7..8d39740f9c 100644 --- a/smoke-test/tests/cypress/cypress.json +++ b/smoke-test/tests/cypress/cypress.json @@ -1,6 +1,7 @@ { - "baseUrl": "http://localhost:9002/", - "chromeWebSecurity": false, - "viewportHeight": 960, - "viewportWidth": 1536 + "baseUrl": "http://localhost:9002/", + "chromeWebSecurity": false, + "viewportHeight": 960, + "viewportWidth": 1536, + "projectId": "hkrxk5" } diff --git a/smoke-test/tests/cypress/integration_test.py b/smoke-test/tests/cypress/integration_test.py index 2eb716fbf7..de2a4eac90 100644 --- a/smoke-test/tests/cypress/integration_test.py +++ b/smoke-test/tests/cypress/integration_test.py @@ -15,7 +15,7 @@ def ingest_cleanup_data(): def test_run_cypress(frontend_session, wait_for_healthchecks): - command = f"npx cypress run" + command = f"npx cypress run --record" print('starting?') proc = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd="tests/cypress") stdout = proc.stdout.read()