Enhance the UI: Action route
Closed this issue · 0 comments
aanchal22 commented
As a customer
I need functions to checkout from shopcart page
So that I will be able to checkout and complete my transaction.
Details & Assumptions:
To checkout the customer must click "Checkout" to move on to the checkout flow.
Acceptance Criteria:
Scenario: Action - Checkout a customer
When I visit the "Home Page"
And I set the "Customer ID" to "10080"
And I set the "Product ID" to "1080"
And I set the "Product Name" to "chrysanthemum"
And I set the "Product Price" to "9"
And I set the "Product Quantity" to "2"
And I press the "Create" button
Then I should see the message "Create Customer: [10080] with product [1080] Success!"
When I press the "Clear" button
Then I should see the message "Form cleared"
When I set the "Customer ID" to "10080"
And I press the "Checkout" button
Then I should see the message "Checkout Successful for Customer: 10080"
And the "Customer ID" field should be empty
And the "Product ID" field should be empty
And the "Product Name" field should be empty
And the "Product Price" field should be empty