diff --git a/.github/workflows/test_e2e.yml b/.github/workflows/test_e2e.yml index d1dd2851a..bb5cd1a58 100644 --- a/.github/workflows/test_e2e.yml +++ b/.github/workflows/test_e2e.yml @@ -50,9 +50,9 @@ jobs: cd e2e-tests/ yarn yarn run cypress run - - name: End-to-end tests | if tests failed, upload screenshots + - name: End-to-end tests | if tests failed, upload report if: ${{ failure() && steps.e2e-tests.conclusion == 'failure' }} uses: actions/upload-artifact@v3 with: - name: cypress-screenshots - path: /home/runner/work/gradido/gradido/e2e-tests/cypress/screenshots/ + name: cypress-report-PR-${{ github.event.number }} + path: /home/runner/work/gradido/gradido/e2e-tests/cypress/reports/ diff --git a/e2e-tests/create-cucumber-html-report.js b/e2e-tests/create-cucumber-html-report.js index 74adceb8f..be0aa0897 100644 --- a/e2e-tests/create-cucumber-html-report.js +++ b/e2e-tests/create-cucumber-html-report.js @@ -1,6 +1,6 @@ const report = require("multiple-cucumber-html-reporter"); report.generate({ - jsonDir: "cypress/reports/json_logs", + jsonDir: "cypress/json_logs", reportPath: "./cypress/reports/cucumber_html_report", metadata: { app: { diff --git a/e2e-tests/package.json b/e2e-tests/package.json index e2ecbb4f9..b81537795 100644 --- a/e2e-tests/package.json +++ b/e2e-tests/package.json @@ -11,12 +11,12 @@ "stepDefinitions": "cypress/support/step_definitions/*.ts", "json": { "enabled": true, - "output": "cypress/reports/json_logs/cucumber_log.json", + "output": "cypress/json_logs/cucumber_log.json", "formatter": "cucumber-json-formatter" }, "messages": { "enabled": true, - "output": "cypress/reports/json_logs/messages.ndjson" + "output": "cypress/json_logs/messages.ndjson" }, "html": { "enabled": false