@revoloo/cypress6
Version:
Cypress.io end to end testing tool
17 lines (13 loc) • 397 B
Markdown
If you need to access the mounted component from test, a reference is available at `Cypress.vue` after the `mount` finishes (asynchronously).
```js
mount(...)
.then(() => {
Cypress.vue.<prop> = ...
// or call a method
Cypress.vue.<method()
})
// then check the UI
cy.contains(...)
```
See component [Message.vue](Message.vue) and [message-spec.js](message-spec.js)