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 4: Writing Your First Test

Before you start this chapter, you need to have an understanding of how Cypress tests are run, different Cypress commands, how to set up Cypress, running Cypress on the command line, and how to use the test runner to open Cypress tests. This information was covered in the first three chapters, and will help you better understand the fundamentals that we will be building on in this chapter when writing our first test.

In this chapter, we will cover the basics of creating test files and writing a basic test, before we move on and write more complicated tests and assert various elements using Cypress.

We will cover the following topics in this chapter:

  • Creating test files
  • Writing your first test
  • Writing practical ...
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