Skip to content

Commit 65561e4

Browse files
committed
Cypress: generate and archive screenshots of test failures
1 parent be5754b commit 65561e4

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/local-playground-test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,9 @@ jobs:
3232
run: |
3333
cd mkdocs/docs/playground
3434
./run-cypress-local.sh
35+
- name: Upload Cypress screenshots
36+
uses: actions/upload-artifact@v4
37+
if: '!cancelled()'
38+
with:
39+
name: cypress-screenshots
40+
path: mkdocs/docs/playground/cypress/screenshots

mkdocs/docs/playground/cypress.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = {
44
// can take a while is they are not warmed up
55
defaultCommandTimeout: 60000,
66
video: false,
7-
screenshotOnRunFailure: false,
7+
screenshotOnRunFailure: true,
88
setupNodeEvents(on, config) {
99

1010
},

0 commit comments

Comments
 (0)