Zum Hauptinhalt springen
Academind
Alle Kurse

Academind-Pro-Kurs

Cypress End-to-End Testing - Getting Started

Learn how to use Cypress to design, build and run powerful and realistic end-to-end (E2E) tests with ease.

  • 7 Abschnitte · 94 Lektionen
  • 6 Std., 13 Min. insgesamt
Cypress End-to-End Testing - Getting Started

Über diesen Kurs

You can build features all day, but the moment something breaks in production you’re left guessing: was it your change, a regression, or a weird edge case you didn’t manually click through? If you’ve got little to no end-to-end testing experience, adding reliable automation can feel like a big, unclear leap.

In this course, you’ll get a guided path into writing and running E2E tests with Cypress, a widely used tool for web application testing. You’ll work through the essential ideas step by step, then build up to more advanced capabilities so you’re not just copying snippets—you’re making testing decisions with confidence.

By the end, you’ll be able to add an end-to-end testing workflow to your web projects, automate realistic user journeys, and catch bugs and regressions earlier. You’ll know how to structure tests that run consistently, validate behavior with clear checks, and handle the kinds of scenarios that show up in real apps—not just toy examples.

Was du lernst

You’ll cover the Cypress workflow end-to-end: setup, test design, realistic interactions, and the real-world edge cases that make E2E testing tricky.

  1. 01

    Set up Cypress

    Install Cypress and get it running in a web project so you can execute E2E tests reliably during development and when checking for regressions.

  2. 02

    Write E2E test suites

    Create automated end-to-end tests that are structured, repeatable, and easy to run—so you can validate critical behavior without relying on manual click-through testing.

  3. 03

    Model real user flows

    Select elements and simulate user interactions like button clicks and keyboard typing to reproduce realistic website workflows that mirror how people actually use your app.

  4. 04

    Assert expected behavior

    Write strong assertions that clearly express what should happen, helping your tests fail for the right reasons and making debugging faster when something breaks.

  5. 05

    Test third‑party code

    Efficiently validate behavior that depends on third‑party code, so your E2E coverage reflects the full user experience instead of only what you control directly.

  6. 06

    Handle auth and data

    Deal with network (HTTP) requests and databases in your tests, and cover user authentication flows so protected areas and login-dependent journeys are tested end-to-end.

Voraussetzungen

  • Basic JavaScript knowledge is required.

  • Basic web development knowledge is required (no specific framework).

  • No prior Cypress knowledge is required.

Für wen dieser Kurs ist

  • Intermediate web developers

    You build websites confidently, but you haven’t built a real automated testing habit yet. This course gives you a practical way to start adding E2E coverage without needing prior Cypress experience.

  • Developers shipping features

    You’re moving fast and want a safety net that catches regressions before users do. This course helps you turn critical user journeys into automated checks you can run anytime.

  • Teams adopting E2E

    You’re expected to contribute tests to a project, but the workflow and best way to approach E2E testing feels fuzzy. This course gives you a clear foundation you can build on.

Lehrplan

Sieh dir Aufbau und Tempo dieses Kurses an, bevor du startest.

  1. 1Introduction8 Lektionen · 25 Min.
    1. 01Welcome To The Course!1:05 Min.
    2. 02What is Cypress & End-to-End Testing? And Why Should You Care?4:16 Min.
    3. 03Installing & Using Cypress6:00 Min.
    4. 04How Cypress Tests Are Organized & Stored2:11 Min.
    5. 05Adjusting Our First Test2:51 Min.
    6. 06Writing A More Realistic Test3:55 Min.
    7. 07About The Course4:36 Min.
    8. 08Course Resources (Slides, Code, Discord)0:00 Min.
  2. 2Cypress Basics - Core Features & Syntax19 Lektionen · 1 Std., 25 Min.
    1. 01Module Introduction1:24 Min.
    2. 02Project Setup3:28 Min.
    3. 03Creating Suites & Tests2:33 Min.
    4. 04Visiting Pages inside of E2E Tests3:33 Min.
    5. 05Let the IDE (VS Code) Help You1:39 Min.
    6. 06Selecting Elements & Evaluating Test Results3:40 Min.
    7. 07Selecting By Text4:23 Min.
    8. 08Implicit and Explicit Assertions5:56 Min.
    9. 09get() vs find()4:51 Min.
    10. 10Why You Need To Simulate User Interaction1:53 Min.
    11. 11Simulating User Interaction8:19 Min.
    12. 12Proper Assertions Are Key!4:12 Min.
    13. 13Time To Practice!3:59 Min.
    14. 14Simulating Keyboard Typing & Writing Good Assertions11:35 Min.
    15. 15Checking For Partial Text3:45 Min.
    16. 16Selecting Dropdown Values7:35 Min.
    17. 17Cypress Tests Run In Isolation2:01 Min.
    18. 18Time For More Queries6:00 Min.
    19. 19Summary4:29 Min.
  3. 3Diving Deeper: Element Selection, Assertions & More20 Lektionen · 1 Std., 17 Min.
    1. 01Module Introduction0:34 Min.
    2. 02Project Setup1:41 Min.
    3. 03Selecting Elements - The Best Practice Way7:30 Min.
    4. 04Testing Page Navigation5:05 Min.
    5. 05More on Selecting Elements4:00 Min.
    6. 06Repetition and More Assertions7:01 Min.
    7. 07Chaining Commands2:01 Min.
    8. 08Working with Values & Aliases3:01 Min.
    9. 09A Closer Look At then()0:00 Min.
    10. 10Getting More Direct Element Access via then()6:38 Min.
    11. 11Simulating Special Key Presses3:15 Min.
    12. 12Another Example6:47 Min.
    13. 13Losing & Gaining Focus5:56 Min.
    14. 14Aliases In Action1:05 Min.
    15. 15Using Cypress Studio For Test Evaluation2:36 Min.
    16. 16Running Tests Without Cypress Studio & Working with Screenshots + Videos2:54 Min.
    17. 17Changing Subjects7:09 Min.
    18. 18Taking Screenshots1:32 Min.
    19. 19should() instead of then()3:26 Min.
    20. 20Summary4:21 Min.
  4. 4Configuration & Customization13 Lektionen · 40 Min.
    1. 01Module Introduction1:11 Min.
    2. 02Project Setup0:51 Min.
    3. 03The Global Config File1:53 Min.
    4. 04Understanding Timeouts2:48 Min.
    5. 05Global vs Local Config1:30 Min.
    6. 06Setting the Test Browser1:05 Min.
    7. 07Configuring the baseURL2:28 Min.
    8. 08Sharing Logic with Test Hooks4:37 Min.
    9. 09Introducing Custom Commands & Queries1:33 Min.
    10. 10Creating a Custom Command5:39 Min.
    11. 11Creating a Custom Query8:19 Min.
    12. 12Understanding Tasks5:17 Min.
    13. 13Summary2:59 Min.
  5. 5Working with Stubs, Spies, Fixtures & Manipulating the Clock16 Lektionen · 1 Std., 13 Min.
    1. 01Module Introduction0:52 Min.
    2. 02Starting Project2:03 Min.
    3. 03Understanding the Problem4:18 Min.
    4. 04Understanding Stubs2:38 Min.
    5. 05Creating & Using a Stub8:25 Min.
    6. 06When Empty Stubs Are Not Enough5:12 Min.
    7. 07Adding a Fake Stub Implementation7:25 Min.
    8. 08Using Stubs Across Tests5:50 Min.
    9. 09Stubs with Return Values6:13 Min.
    10. 10Evaluating Stub Arguments5:33 Min.
    11. 11Using Fixtures6:37 Min.
    12. 12Understanding Spies3:53 Min.
    13. 13Creating & Using Spies4:19 Min.
    14. 14The Problem With Timers5:54 Min.
    15. 15Manipulating the Clock2:40 Min.
    16. 16Summary1:37 Min.
  6. 6Network (HTTP) Requests, Databases & Authentication17 Lektionen · 1 Std., 9 Min.
    1. 01Module Introduction1:10 Min.
    2. 02Starting Project3:55 Min.
    3. 03Writing a First (Problematic) Test5:47 Min.
    4. 04The Problem with Tests & Databases2:13 Min.
    5. 05Creating a Test Database3:13 Min.
    6. 06Seeding the Test Database Before Every Test5:27 Min.
    7. 07Another Database-dependent Test4:34 Min.
    8. 08Understanding & Using Interceptors7:44 Min.
    9. 09You Can't Always Use Interceptors1:26 Min.
    10. 10More Intercepting!2:18 Min.
    11. 11Testing APIs with Test Requests5:52 Min.
    12. 12Summary: Different Network Request Strategies1:47 Min.
    13. 13Testing Authentication Flows & Asserting Cookie Values8:05 Min.
    14. 14Adding a "Login" Test2:23 Min.
    15. 15Creating a Reusable Login Command3:37 Min.
    16. 16Accessing Interceptor Request & Response Data7:52 Min.
    17. 17Summary1:38 Min.
  7. 7Roundup & Next Steps1 Lektion · 3 Min.
    1. 01Roundup & Next Steps3:27 Min.

Bereit loszulegen?

Kaufe diesen Kurs auf Academind Pro oder hol dir mit All Access auf Academind Infinite alle Kurse.

Black Friday: ein Jahr All Access für 249 $ 249 $ · nur bis Angebot sichern
  • Dieser Kurs auf Academind Pro

    69 $einmalig

    Inkl. MwSt. · 30 Tage Geld-zurück-Garantie

    • Lebenslanger Zugriff auf diesen Kurs
    • Alle künftigen Updates dieses Kurses
    • Downloads, Code und ein Zertifikat
    Cypress Testing kaufen
  • All Access auf Academind Infinite

    25 $im Monat

    oder 249 $ 249 $ im JahrSpare 17 %

    • Jeder Kurs, mit allen Funktionen
    • Neue Kurse, sobald sie kommen
    • Dein Tutor, mit allen Funktionen
    All Access holen

All Access enthält außerdem jeden Academind Pro-Kurs.

Academind Pro und Academind Infinite

Zwei getrennte Plattformen, jede mit eigenen Kursen und eigener Anmeldung.

Academind Pro

Unsere ursprüngliche Kursplattform auf pro.academind.com. Dein Pro-Abo und die Kurse, die du dort gekauft hast, bleiben auf Pro.

Bei Academind Pro anmelden

Academind Infinite

Unsere neue KI-first-Plattform. Pro-Mitglieder melden sich mit ihrem Pro-Konto an, und Pro All Access enthält Infinite: Jeder Kurs ist offen.

Bei Academind Infinite anmelden

Hattest du ein Pro-Konto oder einen Kurs auf Pro gekauft?

Nicht jeder Pro-Kurs ist zu Infinite umgezogen, nur diese. Wähle deinen, um ihn auf Infinite zu sehen.