e2e: add video recording

- activate video recording
- add recorded video to failure artefact upload
This commit is contained in:
mahula 2025-05-09 07:08:39 +02:00
parent 7c33de9cc5
commit 2cb19e183a
3 changed files with 4 additions and 3 deletions

View File

@ -154,7 +154,7 @@ jobs:
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: ocelot-e2e-test-report-pr${{ needs.docker_preparation.outputs.pr-number }}
path: /home/runner/work/Ocelot-Social/Ocelot-Social/cypress/reports/cucumber_html_report
path: /home/runner/work/Ocelot-Social/Ocelot-Social/cypress/reports/failure
cleanup_cache:
name: Cleanup Cache

View File

@ -4,7 +4,7 @@ const reportTitle = "Ocelot webapp end-to-end test report"
report.generate({
jsonDir: "reports/json_logs",
reportPath: "./reports/cucumber_html_report",
reportPath: "./reports/failure/cucumber_html_report",
pageTitle: reportTitle,
reportName: reportTitle,
pageFooter: "<div></div>",

View File

@ -47,7 +47,8 @@ module.exports = defineConfig({
supportFile: false,
includeShadowDom: true,
retries: 0,
video: false,
video: true,
videosFolder: 'cypress/reports/failure/'
viewportHeight: 720,
viewportWidth: 1290,
setupNodeEvents,