Skip to content
This repository has been archived by the owner on Jun 11, 2021. It is now read-only.

Commit

Permalink
fix(ypress): Record reuslts
Browse files Browse the repository at this point in the history
  • Loading branch information
Shipow committed Jun 17, 2020
1 parent e6db26e commit 7dac93e
Show file tree
Hide file tree
Showing 3 changed files with 772 additions and 70 deletions.
10 changes: 6 additions & 4 deletions cypress/plugins/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import percyHealthCheck from '@percy/cypress/task';
let percyHealthCheck = require("@percy/cypress/task");

export default (on) => {
on('task', percyHealthCheck);
};
module.exports = (on, config) => {
// `on` is used to hook into various events Cypress emits
// `config` is the resolved Cypress config
on("task", percyHealthCheck);
};
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@
"doc:build": "cd packages/website/ && yarn build",
"doc:deploy": "cd packages/website/ && yarn deploy",
"doc:test": "cd packages/website/ && yarn start --no-open",
"cy:test": "cypress run --spec 'cypress/integration/**/*' --headless",
"cy:verify": "cypress verify",
"cy:info": "cypress info",
"cy:record": "yarn cy:run --record --key=$CYPRESS_TOKEN",
"cy:run": "start-server-and-test doc:test http://localhost:3000 cy:test",
"cy:record": "cy:run --record --key=process.env.CYPRESS_TOKEN",
"cy:test": "cypress run --spec 'cypress/integration/**/*' --headless",
"cy:run:chrome": "yarn run cy:run --browser chrome ",
"cy:run:firefox": "yarn run cy:run --browser firefox",
"cy:run:edge": "yarn run cy:run --browser edge"
Expand Down
Loading

0 comments on commit 7dac93e

Please sign in to comment.