Feature: Inventory Page
File name: inventory.feature
Relative path: feature/inventory.feature
Given
the user is on the inventory page of the Saucedemo website
When
user view the list of products
And
user clicks the "Add to cart" button for a product
Then
the "Add to cart" button should change to "Remove"
And
the cart button quantity should update to 1
Given
the user is on the inventory page of the Saucedemo website
When
user view the list of products
And
user clicks the "Add to cart" button for a product
And
user clicks the "Remove" button for a product
Then
the "Remove" button should change to "Add to cart"
And
the cart button quantity should update to 0