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.3
Published 3 years ago
|
Updated 3 years ago

Approaching testing at a component level has definitely its benefits. Seeing your component rendered in isolation, and making sure it behaves correctly with different properties is definitely faster that trying to interact with an app at end-to-end level. On the other hand, seeing your app render in a browser in an end-to-end test is a significant advantage.

With Cypress’ component testing you can now take the best of both worlds. Render component and interact with it 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 asserrtions 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 it’s 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.