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
15
people completed
Published 2 years ago
|
Updated a year 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 Introduction to Cloudflare Workers
    Kristian Freeman・36m・Course

    Become familiar with the Workers CLI wrangler that we will use to bootstrap our Worker project. From there you'll understand how a Worker receives and returns requests/Responses. We will also build this serverless function locally for development and deploy it to a custom domain.

    illustration for Create an eCommerce Store with Next.js and Stripe Checkout
    Colby Fayock・1h 4m・Course

    This is a practical project based look at building a working e-commerce store using modern tools and APIs. Excellent for a weekend side-project for your developer project portfolio

    illustration for Practical Git for Everyday Professional Use
    Trevor Miller・1h・Course

    git is a critical component in the modern web developers tool box. This course is a solid introduction and goes beyond the basics with some more advanced git commands you are sure to find useful.