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

Check item in cart

We've now provided E2E tests for user register, selection of an item on the home page, and adding an item to the cart.

The next thing we want to test is that the cart page accurately reflects the shopping cart state.

Page object

Let's create a new page object for the cart page by going to the terminal and typing:

$ touch tests/e2e/page-objects/cart.js

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


Click to load comments...