Articles
Latest
More
Newsletter Sponsorship Discord About
Sign up for our Newsletter
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...

Articles
  • Latest
Newsletter
  • Join
  • Sponsorship
More
  • Discord
  • Vue.js jobs
  • About

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

  • RSS
  • |
  • Atom