Reader small image

You're reading from  Angular Design Patterns and Best Practices

Product typeBook
Published inFeb 2024
Reading LevelIntermediate
PublisherPackt
ISBN-139781837631971
Edition1st Edition
Languages
Tools
Right arrow
Author (1)
Alvaro Camillo Neto
Alvaro Camillo Neto
author image
Alvaro Camillo Neto

Alvaro is a software engineer, speaker and instructor in Brazil. He works in the technology industry for over 10 years dedicated to the development of business solutions in a large company in the industry. Alvaro is a technology enthusiast and sees knowledge sharing as an opportunity to help the community that helped him so much and the best way of learning. He has performed from small meetups to large events focusing on the themes of developing web solutions. He also shares knowledge on his blog and participates in the organization of AngularSP.
Read more about Alvaro Camillo Neto

Right arrow

E2E tests with Cypress

E2E tests aim to evaluate the system from the user’s point of view, simulating operations such as typing in a field, clicking on a button, carrying out the assertion, and evaluating the messages on the screen, just as a user would evaluate whether the action was successful or not.

In the Angular ecosystem, in the past, there was a tool called Protractor to help with this type of testing, but it was discontinued by the Angular team in favor of other, more focused open source tools.

Among these new tools, we are going to use one of the most popular ones, called Cypress.

The Cypress framework is a tool that aims to help developers create and run all types of tests in the test pyramid, from unitary to E2E.

Let’s see it in action in our project. For that, we need to install and configure it. Follow these steps to install and configure Cypress:

  1. We will use the Angular CLI to install and configure Cypress. In the command line of your...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Angular Design Patterns and Best Practices
Published in: Feb 2024Publisher: PacktISBN-13: 9781837631971

Author (1)

author image
Alvaro Camillo Neto

Alvaro is a software engineer, speaker and instructor in Brazil. He works in the technology industry for over 10 years dedicated to the development of business solutions in a large company in the industry. Alvaro is a technology enthusiast and sees knowledge sharing as an opportunity to help the community that helped him so much and the best way of learning. He has performed from small meetups to large events focusing on the themes of developing web solutions. He also shares knowledge on his blog and participates in the organization of AngularSP.
Read more about Alvaro Camillo Neto