illustration for Write, Test, and Debug Vue 3 Components in the Browser Using Cypress
pro

Write, Test, and Debug Vue 3 Components in the Browser Using Cypress

Instructor

Filip Hric

37m closed-captioning
·
10 lessons
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
Star icon$$$
3.9
16
people completed
Published 2 years ago
|
Updated 2 years ago

Approaching testing at a component level definitely has its benefits. Seeing your components rendered in isolation and making sure it behaves correctly with different properties is definitely faster than trying to interact with an app at an end-to-end level. Besides, it renders each component in the browser as the user would see it, and that allows you to debug components using your dev tools.

With Cypress’ component testing, you can now take the best of both worlds. Render components and interact with them in a real browser. You can pass different properties, spy on its function calls, click and type into them or even intercept its network calls. All this with a minimal setup and vast options.

What you'll learn

  • setup component testing in Cypress
  • customize component mounting properties
  • render a component in a browser
  • examine a component with different passed properties
  • make assertions on component’s emitted events
  • render a component with content passed into its <slot />
  • catch edge cases by calling actions and passing values into Pinia’s state
  • handle router and its effect component behavior

Course Content

37m • 10 lessons

    You might also like these resources:

    illustration for Test Network Edge Cases with .intercept() Command in Cypress
    Filip Hric • 14m • Course

    Learn how to set up and test different network conditions using the Cypress intercept command.

    illustration for The Beginner's Guide to Vue 3
    Kevin Cunningham • 49m • Course

    This course is for learners just starting out as well as for those who want to get up to speed on Vue 3. You'll learn all the foundational skills of web development in Vue.

    illustration for Auditing React Apps for Accessibility
    Erin Doyle • 31m • Course

    At the end of this course, you will be able to add auditing tools to your development workflow for accessibility issues in your applications and ultimately automate those audits.