Skip to Main Content
Spring Boot and Angular
book

Spring Boot and Angular

by Devlin Basilan Duldulao, Seiji Ralph Villafranca
December 2022
Beginner to intermediate content levelBeginner to intermediate
438 pages
8h 53m
English
Packt Publishing
Content preview from Spring Boot and Angular

15

Writing Tests in Angular

In the previous chapter, we learned how to secure an Angular application by adding user authentication, retrieving user information, and protecting routes.

What if I told you that writing tests in the frontend could be fun and exciting? This chapter will show you how good the developer experience of Cypress E2E, short for end-to-end testing, is. Why do frontend developers love the Cypress framework?

This chapter will teach you how to write basic Cypress tests and mock HTTP requests for testing.

In this chapter, we will cover the following topics:

  • Getting started with Cypress
  • Writing a simple Cypress test
  • Mocking HTTP responses and intercepting HTTP requests

Technical requirements

The following link will take you ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Full-Stack React with Spring Boot

Full-Stack React with Spring Boot

Andy Olsen
Spring Boot Fundamentals

Spring Boot Fundamentals

Bharath Thippireddy

Publisher Resources

ISBN: 9781803243214Supplemental Content