Cypress - Component Testing
Which of the following is the correct Cypress command to mount a React component for component testing?
cy.mount() is used to render a component in isolation.cy.visit() is for E2E page visits, cy.get() selects elements, and cy.request() makes HTTP calls, none mount components.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions