Created
January 21, 2022 23:08
-
-
Save adamdehaven/aba81d5951c931c44260212e98c69bde to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cy.get('.button').click().then(() => { | |
cy.wrap(Cypress.vueWrapper.emitted()).should('have.property', 'click-forgot-password-link') | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Vuetify's
next
branch has a bunch of Cypress component testing examples. Button. They use TSX but you can do something like this:The trick is Vue turns
@register-success
into anonRegisterSuccess
props when it compiles.