Lab Day Nuglif 2019

Steven Rosato

JavaScript End to End Testing Framework

Features

  • DOM Snapshotting with Time Travel
  • Headless and Headed support
  • Automatic screenshots
  • Automatic video recording
  • Chrome debug console
  • DOM Query selection
  • API stubbing

Out of the box:

A bit of history...

The Appeal

  • Easy to setup (yarn add cypress --save-dev)
  • DOM Time Traveling
  • Great documentation
  • Tests written in JS
  • Executed in the same run loop as the application
  • Easy to run tests (headed or headless)
  • Easy to debug
  • No Selenium/PhantomJS/Casper shenanigans
  • Works with SPA written with frontend frameworks (React/Redux)
  • Full Dashboard for test results (paid version only)
  • Can test APIs as an alternative to postman
  • Compatible with CI servers
  • Runs on Docker
  • Them screenshots and videosĀ 

Caveats

  • Not a unit testing tool. E2E only
  • Dashboard is paid version only (optional web-based companion to the Test Runner which is free and open source)
  • No multi-tab support

The code

  • Story editor service
  • branch: labday/cypress under frontend/tests/acceptance

Nuglif - Story Editor on Cypress

By Solutions Majisti

Nuglif - Story Editor on Cypress

Full Stack Testing with Symfony

  • 637