---
title: 'Cypress Tutorial: First Spec to CI: Free Online Course'
description: 'A free, hands-on Cypress tutorial in JavaScript: selectors, retry-ability,
  intercept, cy.session, component tests, config and debugging, ending with your suite
  running on TestingBot and in CI.'
source_url:
  html: https://testingbot.com/resources/courses/cypress
  md: https://testingbot.com/resources/courses/cypress.md
---

Course

[Cypress Tutorial: First Spec to CI](https://testingbot.com/resources/courses/cypress)

Chapter 1 of 11

1. [1 Cypress Tutorial for Beginners](https://testingbot.com/resources/courses/cypress)
2. [2 Install Cypress and Run a First Spec](https://testingbot.com/resources/courses/cypress/install-and-first-spec)
3. [3 Selectors and the Cypress Command Queue](https://testingbot.com/resources/courses/cypress/selectors-and-the-command-queue)
4. [4 Cypress Assertions and Waiting Without Sleeps](https://testingbot.com/resources/courses/cypress/assertions-and-waiting)
5. [5 Fixtures and Network Stubbing with cy.intercept](https://testingbot.com/resources/courses/cypress/fixtures-and-network-stubbing)
6. [6 Custom Commands and Logging In Once with cy.session](https://testingbot.com/resources/courses/cypress/custom-commands-and-sessions)
7. [7 Cypress Configuration, Environment Variables and Retries](https://testingbot.com/resources/courses/cypress/config-and-environment-variables)
8. [8 Cypress Component Testing vs End-to-End Testing](https://testingbot.com/resources/courses/cypress/component-testing)
9. [9 Run Cypress on TestingBot and in CI](https://testingbot.com/resources/courses/cypress/run-cypress-on-testingbot)
10. [10 Debugging Cypress Tests](https://testingbot.com/resources/courses/cypress/debugging-cypress-tests)
11. [11 Knowledge check](https://testingbot.com/resources/courses/cypress/knowledge-check)

[Exit course](https://testingbot.com/resources/courses)

 Chapter 1 of 11 Beginner 4 min read Updated Nov 2026 

# Cypress Tutorial for Beginners

A free, hands-on Cypress tutorial in JavaScript: selectors, retry-ability, intercept, cy.session, component tests, config and debugging, ending with your suite running on TestingBot and in CI.

_The whole course as one 9:03 video, chapter by chapter, with captions. Prefer reading? Every chapter is below._

## What you will learn

1. Cypress Tutorial for Beginners
2. [Install Cypress and Run a First Spec](https://testingbot.com/resources/courses/cypress/install-and-first-spec)
3. [Selectors and the Cypress Command Queue](https://testingbot.com/resources/courses/cypress/selectors-and-the-command-queue)
4. [Cypress Assertions and Waiting Without Sleeps](https://testingbot.com/resources/courses/cypress/assertions-and-waiting)
5. [Fixtures and Network Stubbing with cy.intercept](https://testingbot.com/resources/courses/cypress/fixtures-and-network-stubbing)
6. [Custom Commands and Logging In Once with cy.session](https://testingbot.com/resources/courses/cypress/custom-commands-and-sessions)
7. [Cypress Configuration, Environment Variables and Retries](https://testingbot.com/resources/courses/cypress/config-and-environment-variables)
8. [Cypress Component Testing vs End-to-End Testing](https://testingbot.com/resources/courses/cypress/component-testing)
9. [Run Cypress on TestingBot and in CI](https://testingbot.com/resources/courses/cypress/run-cypress-on-testingbot)
10. [Debugging Cypress Tests](https://testingbot.com/resources/courses/cypress/debugging-cypress-tests)
11. [Knowledge check](https://testingbot.com/resources/courses/cypress/knowledge-check)

[Continue where you left off](https://testingbot.com#)

## TestingBot Cypress Certification

Turn this course into a free, resume-worthy credential: pass the exam, run the course suite on TestingBot, and get a verifiable certificate for your LinkedIn profile.

[How it works](https://testingbot.com/resources/courses/cypress/certification)On this page
1. [1. Your test runs inside the browser](https://testingbot.com#1-your-test-runs-inside-the-browser)
2. [2. Commands are queued, not executed](https://testingbot.com#2-commands-are-queued-not-executed)
3. [3. Each test starts clean](https://testingbot.com#3-each-test-starts-clean)
4. [Which Cypress version this course uses](https://testingbot.com#which-cypress-version-this-course-uses)
5. [How the course is organised](https://testingbot.com#how-the-course-is-organised)
6. [What you'll build](https://testingbot.com#what-you-ll-build)
7. [Prerequisites](https://testingbot.com#prerequisites)

_Last reviewed November 2026 against Cypress 14.2.0 and testingbot-cypress-cli 1.1.5._

Cypress is an open-source end-to-end testing tool for web applications. You write tests in JavaScript (or TypeScript), Cypress opens a real browser, and you watch every command run next to your application. This course teaches it from an empty folder to a suite that runs on several browsers in the cloud and in CI.

If you have used Selenium or Playwright before, three design decisions explain most of what will feel different in Cypress.

## 1. Your test runs inside the browser[#](https://testingbot.com#1-your-test-runs-inside-the-browser)

Selenium and Playwright drive the browser from a separate process. Cypress loads your spec file into the browser itself, next to the application under test, and a Node.js process alongside it handles the things a web page cannot do (reading files, network proxying, screenshots). That is why Cypress can stub network responses, read `window` and `localStorage` directly, and show a live snapshot of the page for every step.

It is also why some things work differently: a single test is meant to stay on one origin, and you reach for `cy.origin()` or a programmatic login (chapter 5) when it cannot.

## 2. Commands are queued, not executed[#](https://testingbot.com#2-commands-are-queued-not-executed)

This line does not find a button:

```javascript
cy.get('[data-test=new-todo]').type('Buy milk{enter}')
```

It **enqueues** two commands. Cypress runs the queue after your test function returns, one command at a time, and each query retries until it finds what it needs or its timeout (4 seconds by default) runs out. Once you see this, a lot of beginner confusion disappears: why `const el = cy.get(...)` does not give you an element, why there is no `await`, and why you almost never need a sleep. Chapter 2 covers the queue and chapter 3 covers retry-ability.

## 3. Each test starts clean[#](https://testingbot.com#3-each-test-starts-clean)

Since Cypress 12, test isolation is on by default: before every test Cypress clears the page, cookies, `localStorage` and `sessionStorage`. Tests cannot lean on state a previous test left behind. The price is that every test must set up what it needs, which is exactly what `cy.session()` (chapter 5) makes fast.

## Which Cypress version this course uses[#](https://testingbot.com#which-cypress-version-this-course-uses)

The course pins **Cypress 14.2.0** , because it is the newest version that TestingBot's grid runs (the [supported versions list](https://testingbot.com/support/web-automate/cypress/version)), and chapter 8 runs the same suite there. Everything in chapters 1 to 7 works the same way in later 14.x and 15.x releases. Cypress 16 removed `Cypress.env()` in favour of `cy.env()` and `Cypress.expose()`; chapter 6 shows where that matters.

## How the course is organised[#](https://testingbot.com#how-the-course-is-organised)

Each chapter adds to one small project, so by the end you have a suite you understand line by line:

1. Install Cypress and run a first spec
2. Selectors and the command queue
3. Assertions and waiting without `cy.wait(ms)`
4. Fixtures and network stubbing with `cy.intercept()`
5. Custom commands and logging in once with `cy.session()`
6. Configuration, environment variables and retries
7. Component testing, briefly
8. Running Cypress on TestingBot and in CI
9. Debugging failing tests
10. A knowledge check

The examples run against public demo pages, so you can copy them and see them pass: the Cypress team's own example site at `example.cypress.io` (a todo app and a page that makes network requests) and a login form at `the-internet.herokuapp.com`. Swap in your own application whenever you are ready.

A note on "Cypress certification", since people search for it: this course and its knowledge check are free and need no account. If you want something to show an employer, the optional [TestingBot certification](https://testingbot.com/resources/courses/cypress/certification) asks for a passed exam and the course suite running green on TestingBot. It is issued by TestingBot, not by Cypress.io, and the certificate says so.

## What you'll build[#](https://testingbot.com#what-you-ll-build)

A JavaScript Cypress project that:

- tests a todo app with stable selectors and retrying assertions,
- stubs and inspects network calls with `cy.intercept()` and fixture files,
- logs in once per run with a custom command built on `cy.session()`,
- mounts a React component in isolation,
- runs on Chrome and Firefox on Windows through the TestingBot Cypress CLI, from your laptop and from GitHub Actions.

## Prerequisites[#](https://testingbot.com#prerequisites)

- Node.js 18, 20 or 22 or newer (the course was run on Node.js 22).
- Basic JavaScript: functions, arrow functions, objects. You do not need `async`/`await`; Cypress does not use it.
- A terminal and a code editor.
- A GitHub account for the CI part of chapter 8, and a TestingBot account for running in the cloud (the free trial is enough).

If you are still choosing a framework, our [Cypress vs Playwright comparison](https://testingbot.com/cypress-vs-playwright) and [Cypress vs Selenium comparison](https://testingbot.com/cypress-vs-selenium) walk through the trade-offs, and the [Playwright tutorial](https://testingbot.com/resources/courses/playwright) follows the same arc for Playwright.

[Next · Chapter 2 Install Cypress and Run a First Spec](https://testingbot.com/resources/courses/cypress/install-and-first-spec)

On this page

1. [1. Your test runs inside the browser](https://testingbot.com#1-your-test-runs-inside-the-browser)
2. [2. Commands are queued, not executed](https://testingbot.com#2-commands-are-queued-not-executed)
3. [3. Each test starts clean](https://testingbot.com#3-each-test-starts-clean)
4. [Which Cypress version this course uses](https://testingbot.com#which-cypress-version-this-course-uses)
5. [How the course is organised](https://testingbot.com#how-the-course-is-organised)
6. [What you'll build](https://testingbot.com#what-you-ll-build)
7. [Prerequisites](https://testingbot.com#prerequisites)

Certification

Earn the free, resume-worthy TestingBot Cypress Certification for this course.

[How it works](https://testingbot.com/resources/courses/cypress/certification)

## Other free courses

- [Accessibility Testing Tutorial: WCAG 2.2 A free, hands-on accessibility testing course: WCAG 2.2 in practice, manual keyboard and screen reader chec...](https://testingbot.com/resources/courses/accessibility-testing)
- [Manual Testing Course A hands-on manual testing course: test design, test cases, exploratory charters, bug reports developers act...](https://testingbot.com/resources/courses/manual-testing)
- [Selenium Locators and Locator Strategies A free course on Selenium locators and locator strategies: CSS selectors, XPath, role-based and test-id loc...](https://testingbot.com/resources/courses/locator-strategies)
- [Flaky Tests: Find, Fix and Prevent Fix flaky tests for good: measure them, then remove the four root causes (waits, shared data, test order, r...](https://testingbot.com/resources/courses/flaky-tests)

[Browse all courses](https://testingbot.com/resources/courses)
