Skip to content

Commit 9beab73

Browse files
committed
Reinstate default Cypress screenshot behaviour
By default Cypress will capture a screenshot if a spec fails [1]. This is useful when diagnosing spec failures especially in the CI build and we have a step [2] in the CI GitHub Action that makes any such screenshots available as downloadable build artefacts. Note that screenshots are *not* captured by default when running `cypress open`, but that seems sensible. The default behaviour was changed in these two commits [3,4] so that screenshots were no longer captured in the CI build. However, I can't find any explanation beyond "Trying to fix screenshot problem". I've reinstated the default behaviour in this commit. [1]: https://docs.cypress.io/guides/guides/screenshots-and-videos#Screenshots [2]: https://github.com/RaspberryPiFoundation/editor-ui/blob/2724a3c6db607eaa5e67bba9b730d9e1055ea467/.github/workflows/ci-cd.yml#L100-L106 [3]: c209c36 [4]: 74290f5
1 parent db0225e commit 9beab73

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

cypress.config.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ export default defineConfig({
55
chromeWebSecurity: false,
66
supportFile: false,
77
defaultCommandTimeout: 10000,
8-
screenshotOnRunFailure: process.env.CI !== "true",
98
video: false,
109
setupNodeEvents(on, config) {
1110
on("task", {

0 commit comments

Comments
 (0)