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

Commit

Permalink
fix(ci): npm script + percy
Browse files Browse the repository at this point in the history
  • Loading branch information
Shipow committed Jun 17, 2020
1 parent bdab390 commit 949a24a
Show file tree
Hide file tree
Showing 5 changed files with 589 additions and 28 deletions.
3 changes: 2 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ jobs:

test_cypress:
<<: *cypress
parallelism: 2
steps:
- checkout
- run: *install_yarn_version
Expand All @@ -101,6 +100,8 @@ jobs:
- run:
name: Cypress test Actions
command: yarn run cy:run
- store_test_results:
path: cypress-results
- store_artifacts:
path: cypress\screenshots
- store_artifacts:
Expand Down
8 changes: 5 additions & 3 deletions cypress/plugins/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
/**
* @type {Cypress.PluginConfig}
*/

let percyHealthCheck = require('@percy/cypress/task')

module.exports = (on, config) => {
// `on` is used to hook into various events Cypress emits
// `config` is the resolved Cypress config
}
on("task", percyHealthCheck);
};
1 change: 1 addition & 0 deletions cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@
//
// -- This will overwrite an existing command --
// Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... })
import '@percy/cypress';
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"cy:test": "cypress run --spec 'cypress/integration/**/*' --headless",
"cy:verify": "cypress verify",
"cy:info": "cypress info",
"cy:run": "start-server-and-test doc:test http://localhost:3000 cy:run",
"cy:run": "start-server-and-test doc:test http://localhost:3000 cy:test",
"cy:record": "cy:run --record --key=process.env.CYPRESS_TOKEN",
"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 949a24a

Please sign in to comment.