Browse Source

Setup Cypress Dashboard (#3691)

Merlijn Vos 2 years ago
parent
commit
b345763710
3 changed files with 3 additions and 1 deletions
  1. 1 0
      .github/workflows/e2e.yml
  2. 1 0
      e2e/cypress.json
  3. 1 1
      e2e/package.json

+ 1 - 0
.github/workflows/e2e.yml

@@ -49,6 +49,7 @@ jobs:
           VITE_TRANSLOADIT_SECRET: ${{secrets.TRANSLOADIT_SECRET}}
           VITE_TRANSLOADIT_TEMPLATE: ${{secrets.TRANSLOADIT_TEMPLATE}}
           VITE_TRANSLOADIT_SERVICE_URL: ${{secrets.TRANSLOADIT_SERVICE_URL}}
+          CYPRESS_RECORD_KEY: ${{secrets.CYPRESS_RECORD_KEY}}
       - name: Remove 'pending end-to-end tests' label
         # Remove the 'pending end-to-end tests' label if tests ran successfully
         if: github.event.pull_request && contains(github.event.pull_request.labels.*.name, 'pending end-to-end tests')

+ 1 - 0
e2e/cypress.json

@@ -1,4 +1,5 @@
 {
+  "projectId": "mcijsj",
   "baseUrl": "http://localhost:1234",
   "defaultCommandTimeout": 16000
 }

+ 1 - 1
e2e/package.json

@@ -6,7 +6,7 @@
   "scripts": {
     "client:start": "parcel clients/index.html",
     "cypress:open": "cypress open",
-    "cypress:headless": "cypress run",
+    "cypress:headless": "cypress run --record",
     "generate-test": "yarn node generate-test.mjs"
   },
   "dependencies": {