Cypress - Component Testing
Given this Cypress test snippet:
What will be the test result?
const onClick = cy.spy();
cy.mount();
cy.get('button').click();
expect(onClick).to.have.been.calledOnce();What will be the test result?
