GithubHelp home page GithubHelp logo

cypress-testing-todo's Introduction

Hello there ๐Ÿ‘‹

This is a repo for implement cypress testing/report

The Trello app is build by https://github.com/filiphric. I will focus only on add cypress tests and reports, and NOT to fix or implement new features to the trello app itself.

eslint will run only on the tests/cypress folder, ignoring the app code.

#Chai Assertions #Reporter: mochawesome

Installation

git clone https://github.com/agustincatalano/cypress-testing-todo.git

yarn install

yarn start

cypress-open to run cypress UI view

cy-run-headless-chrome to run tests on chrome in headless mode and generate reports

cy-run-headless-firefox to run tests on firefox in headless mode and generate reports

test-vr Run visual testing between the screenshots in "screenshotsReference" folder and the ones that the test generate in the "screenshot" folder. Any changes show up in a visual report.

vr-cleanup Delete photos from screenshots folder

vr-approve Approving changes will update your reference files with the results from your last test. Future tests are compared against your most recent approved test screenshots.

Reports will be generated after run tests in headless mode (chrome or firefox) under the report folder that will be generated automatically when the test ends

Visual Regresion.

I've implemented backstop.js and it's very easy to use.

  • Run the tests using cy-run-headless-chrome script, this will generate the images taken by cy.screenshot() and add them to the screenshot folder
  • If the test you ran looks good, then we are ready for the visual regression tests, run test-vr and the report will automatically pop up and show you the images comparison.

Add new test into VR is super easy, just take the screenshot to a particular element o all the page with cy.screenshot() and then add the extra scenario into backstop.json file and that's it!

cypress-testing-todo's People

Contributors

agustincatalano avatar

Watchers

 avatar

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.