Cypress - Component Testing
Consider this Cypress test snippet:
What is the expected outcome of this test?
const onSubmit = cy.spy(); cy.mount(); cy.get('form').submit(); expect(onSubmit).to.have.been.calledOnce();
What is the expected outcome of this test?
