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.
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.
Click to load comments...