Courses
Vue Foundations Vue Fullstack Vue Enterprise
Articles
Latest Topics
More
Newsletter Sponsorship Discord About
The video for this lesson is currently being updated, please read the transcript instead.
Testing Vue Apps - Unit & E2E > Lesson 12

Refactoring into smaller tests

Our "add item to cart" test has become rather long now and contains quite a few asertions. We really should try to refactor it into several smaller tests.

Registration test

Let's start with the registration steps. User registration is a use case on its own, so let's create a new test at the top of this module, "register user". We'll assign a function with browser as the argument.


Back to course page

Click to load comments...

Courses
  • Vue Foundations
  • Vue Fullstack
  • Vue Enterprise
Articles
  • Latest
  • Topics
Newsletter
  • Join
  • Sponsorship
More
  • Discord
  • Vue.js jobs
  • About

Vue.js Developers © 2021. View our privacy policy .

  • RSS
  • |
  • Atom