Cypress · Middle · Question 1 of 77

In Cypress 12+, what is the difference between queries and action commands?

Show the answer

Correct answer: Queries like get are retried; actions like click run once

Explanation

Queries re-run until assertions pass. Actions such as .click() or .type() aren't retried, though they wait for actionability first.

Further reading

Problem with a question

Cypress · Middle · question 1

Test yourself

Take the Cypress · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz