StaffCoder
Cypress

Cypress Practice Exercises

Node.js 24
1 module · 4 challengesSign up
Module 1 of 1 · 4 challenges

Selectors & Retry-ability

Learn how Cypress finds an element and retries for it: reaching controls by role, label, text and placeholder, narrowing a lookup to the card it belongs to, resolving a match on purpose instead of taking the first one Cypress hands you, and letting queries retry instead of pausing.
Finish every challenge, or complete the star challenge, to complete the module.

Challenges

4 challenges

Canal Lock Ticket Office

Sign up to unlock
50%1 of 2 solvedeasy
About this challenge

This problem covers finding every control on a ticket office by the identity a person actually sees, and letting an assertion retry for a result that arrives late.

Solved in a browser IDE and graded by tests. Sign up to solve

Night Market Stall Board

Sign up to unlock
100%1 of 1 solvedeasy
About this challenge

This problem covers narrowing a lookup to the card it belongs to, on a board where every stall repeats the same button and the same field labels.

Solved in a browser IDE and graded by tests. Sign up to solve

Twin Milestone Lane

Sign up to unlock
100%1 of 1 solvedeasy
About this challenge

This problem covers resolving a lookup that matches several elements, by the text beside it, by its position, and by an anchored match that tells apart two names where one contains the other.

Solved in a browser IDE and graded by tests. Sign up to solve

Arboretum Species Directory

STAR
Solving it completes the module
100%1 of 1 solvedeasy
About this challenge

This problem covers working a directory of repeated cards where every name appears at two heading levels, two beds are named so one contains the other, a control renders as either a button or a link, and a slow answer has to be waited for by retrying.

Solved in a browser IDE and graded by tests. Sign up to solve

About this path

Learn to write production-style Cypress test suites through hands-on challenges, one concept at a time.

This path starts with how Cypress finds elements and retries for them. Each challenge gives you a small web app and asks you to write the tests for it, so you should be comfortable with basic JavaScript and with reading HTML. No earlier Cypress experience is needed. Locators come first because they decide whether your tests keep passing when the page changes.

Frequently asked questions

4

What will I practice in this path?

1 module: Selectors & Retry-ability.

How many Cypress exercises are there, and how hard are they?

4 exercises, all easy.

What does this path run on?

Challenges run on Node.js 24.

Do I need to install anything?

No. Every challenge runs in a browser-based IDE with everything already set up, and your code is graded automatically against a test suite.

We use cookies that are necessary to run Staffcoder, and optional analytics cookies to see which pages get used. Analytics stays off unless you accept. Read our Cookie Policy.