forked from Sylius/Sylius
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Behat][Order] Add scenarios for viewing items with proper names
- Loading branch information
Showing
7 changed files
with
91 additions
and
10 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
...unt/customer_account/viewing_orders_history/viewing_order_items_with_proper_names.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
@customer_account | ||
Feature: Viewing order items with proper names | ||
In order to check some details of my placed order | ||
As an Customer | ||
I want to be able to view items with proper names of my placed order | ||
|
||
Background: | ||
Given the store operates on a single channel in "United States" | ||
And the store has a product "Angel T-Shirt" priced at "$39.00" | ||
And the store has a product "Angel Mug" priced at "$19.00" | ||
And the store ships everywhere for free | ||
And the store allows paying with "Cash on Delivery" | ||
And I am a logged in customer | ||
And I placed an order "#00000666" | ||
And I bought an "Angel T-Shirt" and an "Angel Mug" | ||
And I addressed it to "Lucifer Morningstar", "Seaside Fwy", "90802" "Los Angeles" in the "United States" with identical billing address | ||
And I chose "Free" shipping method with "Cash on Delivery" payment | ||
|
||
@ui @todo | ||
Scenario: Viewing basic information about an order | ||
Given the product "Angel T-Shirt" was renamed to "Devil Cardigan" | ||
And the product "Angel Mug" was renamed to "Devil Glass" | ||
When I view the summary of the order "#00000666" | ||
And I should see 2 items in the list | ||
And the product named "Angel T-Shirt" should be in the items list | ||
And the product named "Angel Mug" should be in the items list |
27 changes: 27 additions & 0 deletions
27
features/order/managing_orders/seeing_order_items_with_proper_names.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
@managing_orders | ||
Feature: Seeing order items with proper names | ||
In order to see ordered products with proper names | ||
As an Administrator | ||
I want to be able to list items | ||
|
||
Background: | ||
Given the store operates on a single channel in "United States" | ||
And the store has a product "Angel T-Shirt" priced at "$39.00" | ||
And the store has a product "Angel Mug" priced at "$19.00" | ||
And the store ships everywhere for free | ||
And the store allows paying with "Cash on Delivery" | ||
And there is a customer "lucy@teamlucifer.com" that placed an order "#00000666" | ||
And the customer bought an "Angel T-Shirt" and an "Angel Mug" | ||
And the customer chose "Free" shipping method to "United States" with "Cash on Delivery" payment | ||
And I am logged in as an administrator | ||
|
||
@ui @todo | ||
Scenario: Seeing order items with proper names | ||
Given the product "Angel T-Shirt" was renamed to "Devil Cardigan" | ||
And the product "Angel Mug" was renamed to "Devil Glass" | ||
When I view the summary of the order "#00000666" | ||
Then it should have 2 items | ||
And the product named "Angel T-Shirt" should be in the items list | ||
And the product named "Angel Mug" should be in the items list | ||
And the order's items total should be "$58.00" | ||
And the order's total should be "$58.00" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters