Logo: Relish

  1. Sign in

Project: Depot

Checkout

Scenarios
  • @product
Cart is empty

An order must contain at least one item

Given
my cart is empty
Then
I should not be able to check out
Successful checkout
Given
my cart contains products
When
I check out with valid details
Then
the order should be placed
And
the customer's details should be captured
Attempt to complete checkout without completing mandatory fields

The name, address, email and pay type fields are mandatory

Given
I am checking out with valid details
But
I leave the field blank
When
I attempt to place the order
Then
the order should not be placed
And
the error message should be "message"
Examples:
field message
name Name can't be blank
address Address can't be blank
email Email can't be blank
pay type Pay type is not included in the list

Last published over 5 years ago by andy8.