Skip to content
masterclass Buddy

Cypress · Function

context

context() groups related Cypress tests. It is an alias for describe(), so use either name to organize suites and nest smaller test groups.

Last updated

Syntax

context(name, fn)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • describe()
  • it()
  • specify()
  • beforeEach()
  • Test Structure

Source: Writing and organizing Cypress tests | Cypress Documentation. Checked 2026-11-03.