TOPIC 25/4016 MINNOT STARTED

Cypress: your first end-to-end test

Cypress runs tests inside the browser and retries checks for you. Write a first test that visits a page, finds an element and checks the result.

L1–L4 are part of the Pro pass

L0 Explain simply

Analogy: a helper who keeps looking. You ask a helper to find a red mug on a shelf. If it is not there, the helper looks again for a few seconds before saying no.

The helper does not need you to say how long to wait.

Cypress works like that. Mei, the tester at Daily List, a to-do list app, asks for an element and , and Cypress keeps trying for a short time.

PLAIN WORDS · 1 in this section
cypress
A free tool that drives a web browser for checks.

PICTURE IT

The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.

THE REAL JOB Finding an element and checking it, with the tool retrying for a short time, like a helper looking for a mug.

  1. Visit
  2. Get
  3. Act
  4. Should
Helper who keeps looking

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
The helperCypress
The red mugThe element
Looking againRetry-ability
Saying yes or noThe should check

WHERE THIS PICTURE STOPS

  • A helper tires, but Cypress does not.
  • A helper looks for any mug, but Cypress needs a locator.
  • A helper waits as long as you say, but Cypress stops at a time limit.

HOOK

Visit, get, act, should.

TELL A FRIEND

A helper who keeps looking, then says yes or no.

OFTEN MIXED UP WITH Selenium WebDriver: your first small suite. That topic drives a browser from outside with Selenium. This one runs inside the browser with Cypress.

PRACTISE AND KEEP

Sources for this topic — 1 source
  1. Market practice

    End-to-end testing: your first test with Cypress (Cypress documentation) ↗ — Cypress.io · Cypress documentation: cy.visit loads a page, cy.get and cy.contains query elements, and .should chained on a command checks the result, for example the URL after a click (search excerpt, page not opened)

    Walks through visiting a page, querying elements, making assertions with should and debugging a failure. Project documentation. Practitioner guidance, not a standard. · Checked 2026-10-31

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.