Automated tests
with Cypress
2
Jonathan Sedrez
Agibank | IBK
Fernando
Rogelin
Agibank | IBK
1.
Before
Cypress
was all bush
3
Before Cypress
4
With Cypress
2.
Cypress
Fast, easy and reliable testing for anything that
runs in a browser.
5
“We want to help developers build a new
generation of modern applications faster,
better, and without the stress and anxiety
associated with managing tests.”
6
7 ways Cypress is
different:
● Does not use Selenium.
● Focuses on doing end-to-end testing REALLY well.
● Works on any front-end framework or website.
● Tests are only written in JavaScript.
● Is all in one.
● Is for developers and QA engineers.
● Runs much, much faster.
7
Layout
8
Syntax
9
Syntax similar to unit testing frameworks.
Mocha | Chai | Jest
Debugging
10
… but do you know what happen in you test flow?
Okay! The test pass!
Testing the service
11
Requests that are not stubbed actually reach your server. By not
stubbing your responses, you are writing true end-to-end tests. This
means you are driving your application the same way a real user
would.
12
Plugins
The Plugins API allows you to hook into and extend
Cypress behavior.
API
13
Commands
- click
- visit
- contains
- get
- viewport
Assertions
- BDD
- TDD
Let’s Code!
14
Thanks!
Any questions?
15

Cypress