Cypress – the new old
Selenium ?
Server
Application
Server
my-application.net
Unit
Integration
UI
Fail
Refactor
Passed
New
TDD
Application
Server
my-application.net
Driver
TestCode
BrowserAPI
§ Setting up
§ Writing
§ Executing
§ Debugging
§ Fragility
cypress.io
• Brain Mann
• @be_mann
Server
Application
my-application.net
test.js
test.js
Cypress amazingly simple:
§ Setting up tests
§ Writing tests
§ Running tests
§ Debugging
Setting up
npm
$ cd /your/project/path
$ npm install cypress --save-dev
$ ./node_modules/.bin/cypress open
direct download
http://download.cypress.io/desktop
Writing
§ Mocha
§ Chai
§ Cypress API
§ Direct DOM access
§ Documentation
Cypress API
§ Chained
§ Commands
§ Requests
§ Mocking
§ Documentation
Running
§ Test Runner
§ Dashboard
Debugging
§ DOM Snapshots
§ Dev Tools
§ Screenshots
§ Video
Benefits
§ Easy setup
§ Inside browser
§ Development Speed
§ Documentation
Trade-offs
§ Specific purpose
§ Inside browser
§ No tabs
§ One browser
§ Single origin
§ $$
Yaroslav Pernerovskyy
§ https://soundcloud.com/qaguild
§ https://qaguild-slack.herokuapp.com

Cypress new old Selenium