GithubHelp home page GithubHelp logo

wlsf82 / cypress-and-percy-course Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 2.0 94 KB

Repository for the basic course of visual regression testing with Cypress and Percy, by Walmyr Filho

License: MIT License

cypress-io percy visual-regression-testing

cypress-and-percy-course's Introduction

cypress-and-percy-course

Repository for the basic course of visual regression testing with Cypress and Percy, by Walmyr Filho.

Lesson 1

Initial setup

Lesson's content
- Git clone - [email protected]:wlsf82/cypress-and-percy-course.git
- Initializing a Node.js project - npm init -y
- Updating the test script - percy exec -- cypress run
- Installation - npm i cypress @percy/cypress -D
- Cypress' files and directories structure - npx cypress open
- Updating the .gitignore file - cypress/screenshots/ and cypress/videos/
- Configuring Percy to work with Cypress - https://docs.percy.io/docs/cypress
- Cypress docs - https://docs.cypress.io/guides/overview/why-cypress.html
- Percy docs - https://docs.percy.io/docs

Lesson 2

Percy.io

Lesson's content
- Creating an account on percy.io
- Creating a project
- Exporting the project token

Lesson 3

The first test

Lesson's content
- Getting to know the application under test
- Creating the first visual regression test with Cypress & Percy
- Running the first test
- Approving the snapshot on Percy's dashboaard

Lesson 4

Testing an invalid email address

Lesson's content
- Writing the test
- Running the test
- Approving the snapshot on percy.io

Lesson 5

Testing filling all the mandatory form fields

Lesson's content
- Writing the test
- Running the test
- Approving the snapshot on percy.io

Lesson 6

Testing the selection of a VIP ticket

Lesson's content
- Writing the test
- Running the test
- Approving the snapshot on percy.io

Lesson 7

Testing dynamic content

Lesson's content
- The problem of dynamic content in visual regression testing
- Testing successfully submitting the form
- Running the test and aproving the snapshot on percy.io
- Re-running the tests and getting a false-negative result
- Dealing with dynamic content - https://docs.percy.io/docs/percy-specific-css
- Re-running the tests and approving the new snapshot on percy.io
- Re-running the tests without false-negative results

Lesson 8

Ending

Lesson's content
- Project docs - updating the README.md file
- Learnings summary
- Going beyond - #ReadTheDocs

A course created by Walmyr Filho.

cypress-and-percy-course's People

Contributors

wlsf82 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

kostyrko deidrah

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.