All quizzes
Free quiz · 49 questions in the bank

Cypress quiz

Test your Cypress knowledge with a free interactive quiz — 49 questions with answers and explanations. No signup needed to play.

Question 1/5Score 0

What does cy.get('.item').should('have.length', 3) assert?

Questions in this quiz
  1. What does cy.get('.item').should('have.length', 3) assert?
  2. What does cy.get('input[name=email]').clear().type('a@b.com') do?
  3. What is the effect of running a test with it.only(...) instead of it(...)?
  4. Which statement about cy.wait() with a plain number, e.g. cy.wait(2000), is accurate?
  5. A spec file in Cypress is typically located under which folder by default?
  6. What is the purpose of the beforeEach() hook in a Cypress spec?
  7. What does the .click() command do when chained after cy.get('button')?
  8. What is the role of cy.fixture('users.json') in a test?
  9. What does cy.url().should('include', '/orders') check?
  10. What is Cypress?
  11. Which of these is a valid way to select an element by a custom test attribute in Cypress, following common best practice?
  12. What does cy.get('[data-cy=submit]') return?
Gaps to close?
Read the curated Cypress notes — core concepts, patterns, interview prep.
Cypress notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web