diff --git a/.github/workflows/cypress-component.yml b/.github/workflows/cypress-component.yml index d17cd5d6532..36c6987c8fd 100644 --- a/.github/workflows/cypress-component.yml +++ b/.github/workflows/cypress-component.yml @@ -57,3 +57,13 @@ jobs: CYPRESS_BUILD_ID: ${{ github.sha }}-${{ github.run_number }} CYPRESS_GROUP: Run component npm_package_name: ${{ env.APP_NAME }} + + - name: Upload snapshots + uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1 + if: failure() + with: + name: snapshots + path: | + cypress/screenshots/ + cypress/snapshots/ + retention-days: 5