Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
chore: add SCREENSHOT env var
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohammer5 committed Oct 23, 2019
1 parent cad973d commit bf3bfa8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cypress.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"testFiles": "**/*.feature",
"video": false,
"screenshots": {
"screenshotOnRunFailure": false
},
"projectId": "65oh1u"
}
1 change: 1 addition & 0 deletions cypress/support/index.js
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
import './screenshots'
import './visitStory'
5 changes: 5 additions & 0 deletions cypress/support/screenshots.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const takeScreenshots = !!Cypress.env('SCREENSHOT')

Cypress.Screenshot.defaults({
screenshotOnRunFailure: takeScreenshots,
})

0 comments on commit bf3bfa8

Please sign in to comment.