From 1c7069fac8cd0067705a94b444e397154d79a7ae Mon Sep 17 00:00:00 2001 From: Aditya Radhakrishnan Date: Wed, 13 Apr 2022 07:30:24 -0700 Subject: [PATCH] feat(ci) - add cypress dashboard view to CI (#4654) --- .github/workflows/build-and-test.yml | 2 ++ smoke-test/tests/cypress/cypress.json | 9 +++++---- smoke-test/tests/cypress/integration_test.py | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index c8ca5f9c46f2d3..240f86cb292c5f 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 304294cfc7d6a0..8d39740f9c5408 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 2eb716fbf75b12..de2a4eac901220 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()