Skip to Main Content
End-to-End Web Testing with Cypress
book

End-to-End Web Testing with Cypress

by Waweru Mwaura
January 2021
Intermediate to advanced content levelIntermediate to advanced
240 pages
5h 5m
English
Packt Publishing
Content preview from End-to-End Web Testing with Cypress

Chapter 11: Exercise – Stubbing and Spying XHR Requests

Before we get started on this chapter, you need to understand why we need to stub or spy requests and methods, and to do this, you will need an understanding of Cypress requests and how to test individual methods. The previous chapters have presented extensive knowledge on how you can easily get started on Cypress, and we have covered concepts relating to network requests and functional testing. In this chapter, we will be building on the concepts that we have gained in the previous chapters with the focus being a hands-on approach by use of examples and exercises.

We will cover the following key topics in this chapter:

  • Understanding XHR requests
  • Understanding how to stub requests
  • Understanding ...
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

Simplify Testing with React Testing Library

Simplify Testing with React Testing Library

Scottie Crump
REST API Automation Testing from Scratch - REST Assured Java

REST API Automation Testing from Scratch - REST Assured Java

Venkatesh Chepuri (Rahul Shetty), Rahul Shetty

Publisher Resources

ISBN: 9781839213854Supplemental Content