Master Cypress In 15 Minutes A Day

Learn how to improve your software quality with end to end testing using Cypress

Last updated 2022-01-10 | 4.7

- How to start testing with Cypress
- How to run Cypress tests on a continuous integration server
- Intercept AJAX responses when required

What you'll learn

How to start testing with Cypress
How to run Cypress tests on a continuous integration server
Intercept AJAX responses when required
Learn how to do visual regression testing
See how you can extend Cypress with additional functionality
Use TypeScript to write your Cypress tests

* Requirements

* A basic understanding of JavaScript
* HTML and CSS selectors

Description

Tired of having users email you that your web application is broken? Using Cypress, the JavaScript End to End Testing Framework, as a quality control tool will help a lot in preventing those emails. Yet Cypress, good as it is, is not a silver bullet.


In this course you will learn how easy it is to get started with Cypress and create your first useful tests. We are going to start at the basics of Cypress. But we are not going to stay there. You will also learn how to make tests for data driven applications more reliable and even faster. You will also learn how to expand Cypress with extra functionality. We will do that both by adding additional plugins as well as writing our own extensions. We will look at how how to test applications using 3rd party authentications services. And you will learn how to include all that as part of your continuous integration build. Helping you prevent errors in code from ever deploying to production.


My name is Maurice de Beijer and I would love to teach you all about using Cypress. I have been using Cypress successfully in many of my projects.


Is this course for you? Never written automated end to end tests before?  No problem, we will start from the beginning. Already written some end to end tests with something like Selenium? Sweet, I will show you how to get up and running with Cypress in no time. Not sure if automated end to end testing is for you? I will show you how to get quick benefits for a minimal amount of work.

Who this course is for:

  • Developers and software testers interested in creating automated end to end tests

Course content

7 sections • 51 lectures

Introduction Preview 01:12

Course Goals Preview 02:18

What is Cypress Preview 09:42

Personal Introduction Preview 01:46

Writing your first Cypress test Preview 10:00

Adding a package.json Preview 09:01

Fixing a broken Cypress installation Preview 08:24

The most important commands Preview 15:02

Adding IntelliSense Preview 03:32

Mocha hooks Preview 02:59

Cypress configuration Preview 06:37

Selecting DOM elements Preview 14:05

Querying by text Preview 06:17

Aliasing Preview 07:27

Interacting with Elements - Section Introduction Preview 00:46

Clicking DOM elements Preview 07:47

Typing text Preview 14:51

Radio buttons & checkboxes Preview 04:23

Select elements Preview 04:01

Manipulating the value Preview 04:01

Validating the value Preview 05:16

Network Requests & Cypress - Section Introduction Preview 01:19

The book search application Preview 07:59

Intercepting AJAX Requests Preview 08:04

Cypress.minimatch() Preview 03:38

cy.route() & cy.server() Preview 01:25

Waiting for a response Preview 04:32

Faking AJAX responses Preview 08:07

Intercepting the response Preview 06:04

Making network requests Preview 05:04

Continuous Integration - Section Introduction Preview 01:08

CI using GitHub Actions Preview 08:16

Cypress Continuous Integration Steps Preview 05:29

Using a Docker container Preview 05:01

Flaky tests Preview 07:27

The Cypress Dashboard Preview 07:44

Local GitHub Actions Preview 04:55

Extending Cypress - Section Introduction Preview 01:23

Adding Custom Commands Preview 04:39

Adding Child Commands Preview 04:54

Writing Dual Commands Preview 03:08

Logging Custom Commands Preview 05:22

Better Command Logging Preview 06:25

Adding Custom Tasks Preview 11:15

Combining Tasks & Commands Preview 03:20

Tip & Tricks Preview 00:28

IntelliSense in Visual Studio Code Preview 03:06

Configuring ESLint Preview 03:54

Faking Math.random() Preview 05:40

Overriding the Cypress configuration Preview 03:52

Data driven tests Preview 04:35