lecture 20 of 200 completed

Reading a failing test

Timeout messages, assertion messages and the Command Log. Read each one word by word, and it usually names the cause.

What you'll learn

  • How to read a Cypress timeout message literally
  • What an assertion difference is telling you
  • How to use the command log to find the cause

A test fails. Most beginners then do one of two things. They change something at random and run the test again, or they ask a senior engineer. Both are slow.

A Cypress failure message usually says what went wrong, if you read it word by word. This lecture shows the messages you will see most often, and how to read each one.

Reading example. Harbour Ferries is a fictional ferry booking app. You can read these examples here.

1. The timeout message.

full course

Keep reading with the full course

The Foundations track and the first lessons in each framework are free. This lesson needs full course access. A course plan includes all lessons for Playwright, Cypress and Selenium.

See course plans →