percy-cypress
cypress-plugin-snapshots
percy-cypress | cypress-plugin-snapshots | |
---|---|---|
2 | 3 | |
331 | 489 | |
0.3% | - | |
3.9 | 0.0 | |
4 days ago | 6 months ago | |
JavaScript | JavaScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
percy-cypress
-
Painlessly setup Cypress & Percy with Github Actions in minutes
// cypress/support/commands.js import '@percy/cypress' ... // https://github.com/percy/percy-cypress/issues/56 Cypress.Commands.add( 'percySnapshotElement', { prevSubject: true }, (subject, name, options) => { cy.percySnapshot(name, { domTransformation: (documentClone) => scope(documentClone, subject.selector), ...options }) } ) function scope(documentClone, selector) { const element = documentClone.querySelector(selector) documentClone.querySelector('body').innerHTML = element.outerHTML return documentClone }
-
How I help my self in Agile UI changes with Cypress and Percy
In opened project in your favorite code editor with installed cypress you need to install percy-cypress:
cypress-plugin-snapshots
-
Visual Regression Testing with Cypress 10
One plugin which Cypress suggests is the cypress-plugin-snapshots, but if you wander into Cypress’ plugin “market” you can see that there are more. After checking a few, I have decided to go with the cypress-image-diff-js plugin because it’s free, has a relatively simple api, seems to have a good update activity and a fair amount of GitHub stars.
-
E2E Testing a Video Game
I had a lot of fun putting this together and was able to do so quickly with the help of Yannick's boilerplate, Kenny's Assets, Phaser, Cypress and cypress-plugin-snapshots.
-
Understanding and implementing Cypress snapshot testing
The cypress-plugin-snapshots module has already been mentioned earlier, but I'll mention it again as it provides image snapshot functionality as well. The toMatchImageSnapshot() command can take a screenshot of the entire web document or of a specific element.
What are some alternatives?
cypress-image-snapshot - Catch visual regressions in Cypress
cypress-image-diff - Visual regression test with cypress
applitools-eyes-action - GitHub Action to add automated, AI-powered Visual Testing to your app
cypress-example-recipes - Various recipes for testing common scenarios with Cypress
puppeteer - Node.js API for Chrome
Visual-Regression-Tracker - Backend and Frontend application for tracking differences via image comparison
snapshot - Adds value / object / DOM element snapshot testing support to Cypress test runner
react-hooks-in-action-with-cypress - React Hooks in Action Book, with Cypress e2e & component tests
phaser-project-template - 🕹️ Phaser 3 - Starter Template with TypeScript and webpack.
cypress-visual-regression - Module for adding visual regression testing to Cypress
cypress-react-app-actions - Access the internals of React components from Cypress end-to-end tests