Speed up your end-to-end tests with Cypress

#eg-xtech-week

Before Cypress ... πŸ¦•

#eg-xtech-week

#eg-xtech-week

#eg-xtech-week

#eg-xtech-week

#eg-xtech-week

#eg-xtech-week

#eg-xtech-week

πŸŽ‰ Cypress πŸš€

#eg-xtech-week

What is Cypress ?

  • Created by Brian Mann in 2014 πŸ‘¨β€πŸ’»
  • Public beta since october 2017 🀘
  • Not in beta since septembre 2018 πŸŽ‰

#eg-xtech-week

Developer Experience
😍

#eg-xtech-week

#eg-xtech-week

Who am I ?

  • Rodolphe Bung
  • Software developer since 2005

@rodbung

rbung

#eg-xtech-week

Demo ! πŸ’ͺ

#eg-xtech-week

Install Cypress ...

... with a single command 😎

npm install -D cypress

#eg-xtech-week

To sum up ! πŸ™‹β€β™‚οΈ

  • Navigation testing
  • Single page unit testing
  • Intercept and stub XHR requests 😎
  • Customs commands
  • Run/Debug tests with the UI
  • Run tests in headless mode
  • Dashboard service πŸ’°

#eg-xtech-week

Other cool stuff πŸ’β€β™‚οΈ

  • Components (React/Vue/Angular) unit testing
  • Plugins (cucumber, Typescript, react-testing-library)
  • Parallel runs (automatically load balanced) πŸ’°

#eg-xtech-week

What about the roadmap ? πŸš€

https://www.youtube.com/watch?v=FfqD1ExUGlw

#eg-xtech-week

Community adoption

#eg-xtech-week

Some downsides ? πŸ€”

  • Some trade-offs to be aware of
  • No multi-browsers support (but it's coming ! 🀞)

#eg-xtech-week

Useful resources πŸ“š

#eg-xtech-week

Thank you ! πŸ™

Questions ?

@rodbung

https://github.com/rbung/CypressEGxTech

https://slides.com/rodolphebung/cypressegxtech

#eg-xtech-week

Cypress EG xTech presentation

By Rodolphe BUNG

Cypress EG xTech presentation

A cypress presentation for Expedia Group tech week event

  • 773