Pass Properties Into a Vue 3 Component Within a Cypress Test

InstructorFilip Hric

Share this video with your friends

Send Tweet

Some components can have properties passed into them, For these, we can use an options parameter in our cy.mount() function and pass props attribute which will define the properties we want to pass into our component. This way we can test whether different properties correctly render out in our component.