lecture 4 of 160 completed

Designing the layer your specs are written against

Between raw Cypress and your specs sits a vocabulary you design. Getting that layer right is what makes a large suite readable.

What you'll learn

  • Why specs should read as intent, not as steps
  • Why helpers must not contain assertions
  • How to tell useful abstraction from indirection

Read these two tests. Both check the same thing.

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 →