From 1bceeb244c29753b42f75b55dd759df125192e91 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 28 Apr 2022 12:47:13 +0100 Subject: [PATCH] Record cypress runs to dashboard (#8436) --- .github/workflows/element-build-and-test.yaml | 6 ++++++ cypress.json | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/element-build-and-test.yaml b/.github/workflows/element-build-and-test.yaml index 2bb95d1c0e..1b736d2838 100644 --- a/.github/workflows/element-build-and-test.yaml +++ b/.github/workflows/element-build-and-test.yaml @@ -70,6 +70,12 @@ jobs: # to run the tests, so use chrome. browser: chrome start: npx serve -p 8080 webapp + record: true + env: + # pass the Dashboard record key as an environment variable + CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} + # pass GitHub token to allow accurately detecting a build vs a re-run build + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Upload Artifact if: failure() diff --git a/cypress.json b/cypress.json index 4c1ed2d585..2c39bb411f 100644 --- a/cypress.json +++ b/cypress.json @@ -1,4 +1,5 @@ { "baseUrl": "http://localhost:8080", - "videoUploadOnPasses": false + "videoUploadOnPasses": false, + "projectId": "ppvnzg" }