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 effect of Cypress.Commands.add('login', fn) placed in cypress/support/commands.js?

In this round
  1. What is the effect of Cypress.Commands.add('login', fn) placed in cypress/support/commands.js?
  2. What is the purpose of the cypress/support/commands.js file?
  3. Which of these is a valid way to select an element by a custom test attribute in Cypress, following common best practice?
  4. What does .should('be.visible') do when chained after cy.get()?
  5. What is Cypress?
  6. What does cy.type('hello') do when chained after cy.get('input')?
  7. How do you run Cypress tests headlessly, e.g. in a CI pipeline?
  8. What does the .click() command do when chained after cy.get('button')?
  9. What does cy.get('.item').should('have.length', 3) assert?
  10. What does setting baseUrl in the Cypress config let you do?
  11. What does cy.get('[data-cy=submit]') return?
  12. Which statement about cy.wait() with a plain number, e.g. cy.wait(2000), is accurate?
Gaps to close?
Read the curated Cypress notes — core concepts, patterns, interview prep.
Cypress notes

More quizzes

.NETAccessibilityAgile MethodologyAlertmanagerAlgorithmsAndroid