lecture 6 of 200 completed

Acting on the page

click, type, select and check. Plus what Cypress verifies before it acts.

What you'll learn

  • The four actions that cover most of what a user does
  • What Cypress checks about an element before acting on it
  • Why a refused action is often a real finding, not a test problem

A test fills in a ferry booking and clicks Book. It fails with a message that the button is covered by another element. On screen, a cookie banner sits over the button. A real passenger could not click it either.

The test did not break. It found something true about the app.

Actions are the half of a test that does what a user does. You met the other half, checks, in your first test. This lecture covers the four actions that handle most of what a user does, and what Cypress checks before each one.

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

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 →