diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b46ae4e..ec44611 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,3 +28,6 @@ jobs: with: install: false command: yarn test:e2e + env: + CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} + CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }} diff --git a/package.json b/package.json index ff82385..0ecb7ce 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,8 @@ "test:coverage": "yarn test:unit --watchAll=false --coverage", "cypress:open": "cypress open", "cypress:run": "cypress run", - "test:e2e": "start-server-and-test start http://localhost:3000 cypress:run", + "cypress:record": "yarn cypress:run --browser chrome --record", + "test:e2e": "start-server-and-test start http://localhost:3000 cypress:record", "eject": "react-scripts eject" }, "jest": {