The video for this lesson is currently being updated, please read the transcript instead.

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.

To view the complete lesson you'll need to login or join this course.


Click to load comments...