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/12Score 0

What is the role of cy.fixture('users.json') in a test?

In this round
  1. What is the role of cy.fixture('users.json') in a test?
  2. What is the purpose of the cypress/support/commands.js file?
  3. What does describe() do in a Cypress spec file?
  4. What is the default command timeout most Cypress commands use while retrying?
  5. What does setting baseUrl in the Cypress config let you do?
  6. What does the .click() command do when chained after cy.get('button')?
  7. Where does the Cypress configuration (base URL, timeouts, etc.) typically live in a modern Cypress project?
  8. What is a Cypress fixture?
  9. What does cy.visit('/dashboard') do?
  10. What does cy.get('.item').should('have.length', 3) assert?
  11. What is the effect of running a test with it.only(...) instead of it(...)?
  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