Commit 9beab73
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]: 74290f51 parent db0225e commit 9beab73
1 file changed
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
0 commit comments