Pass Properties Into a Vue 3 Component Within a Cypress Test

Filip Hric
InstructorFilip Hric
Share this video with your friends

Social Share Links

Send Tweet
Published 2 years ago
Updated 2 years ago

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.