mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
Add scenarios
This commit is contained in:
parent
09c5301e05
commit
5b4251aaef
3 changed files with 104 additions and 0 deletions
|
|
@ -0,0 +1,32 @@
|
|||
@customer_account
|
||||
Feature: Viewing details of an order
|
||||
In order to check some details of my placed order
|
||||
As an Customer
|
||||
I want to be able to view details of my placed order
|
||||
|
||||
Background:
|
||||
Given the store ships to "British Virgin Islands"
|
||||
And the store has a zone "English" with code "EN"
|
||||
And this zone has the "British Virgin Islands" country member
|
||||
And the store operates on a channel named "Web"
|
||||
And that channel allows to shop using the "USD" currency
|
||||
And that channel allows to shop using the "GBP" currency with exchange rate 3.0
|
||||
And that channel uses the "USD" currency by default
|
||||
And the store allows paying with "Cash on Delivery"
|
||||
And the store has "DHL" shipping method with "$20.00" fee within "EN" zone
|
||||
And the store has a product "Angel T-Shirt" priced at "$20.00"
|
||||
And I am a logged in customer
|
||||
And I chose "GBP" currency
|
||||
And I placed an order "#00000666"
|
||||
And I bought a single "Angel T-Shirt"
|
||||
And I addressed it to "Lucifer Morningstar", "Seaside Fwy", "90802" "Los Angeles" in the "United States"
|
||||
And for the billing address of "Mazikeen Lilim" in the "Pacific Coast Hwy", "90806" "Los Angeles", "United States"
|
||||
And I chose "DHL" shipping method with "Cash on Delivery" payment
|
||||
|
||||
@ui
|
||||
Scenario: Viewing basic information about an order
|
||||
When I view the summary of the order "#00000666"
|
||||
Then I should see "£120.00" as order's total
|
||||
And I should see "£60.00" as order's subtotal
|
||||
And I should see "£60.00" as item price
|
||||
And I should see "£120.00" as payment total
|
||||
|
|
@ -0,0 +1,41 @@
|
|||
@checkout
|
||||
Feature: Seeing prices recalculated by exchange rate on order summary
|
||||
In order to be certain about order cost in a selected currency
|
||||
As a Customer
|
||||
I want to see my order summary with prices recalculated by an exchange rate
|
||||
|
||||
Background:
|
||||
Given the store ships to "British Virgin Islands"
|
||||
And the store has a zone "English" with code "EN"
|
||||
And this zone has the "British Virgin Islands" country member
|
||||
And the store operates on a channel named "Web"
|
||||
And that channel allows to shop using the "USD" currency
|
||||
And that channel allows to shop using the "GBP" currency with exchange rate 3.0
|
||||
And that channel uses the "USD" currency by default
|
||||
And the store has a product "Lannister Coat" priced at "$100.00"
|
||||
And the store has "DHL" shipping method with "$20.00" fee within "EN" zone
|
||||
And the store allows paying offline
|
||||
And I am a logged in customer
|
||||
|
||||
@ui
|
||||
Scenario: Seeing prices recalculated by an exchange rate from given currency
|
||||
When I change my currency to "British Pound"
|
||||
And I add product "Lannister Coat" to the cart
|
||||
And I specified the shipping address as "Ankh Morpork", "Frost Alley", "90210", "British Virgin Islands" for "Jon Snow"
|
||||
And I proceed order with "DHL" shipping method and "Offline" payment
|
||||
Then I should be on the checkout summary step
|
||||
And the "Lannister Coat" product should have unit price "£300.00"
|
||||
And my order shipping should be "£60"
|
||||
And my order total should be "£360"
|
||||
|
||||
@ui
|
||||
Scenario: Seeing prices recalculated by an exchange rate equal to existed in time when order was placed
|
||||
When I change my currency to "British Pound"
|
||||
And I add product "Lannister Coat" to the cart
|
||||
And I specified the shipping address as "Ankh Morpork", "Frost Alley", "90210", "British Virgin Islands" for "Jon Snow"
|
||||
And I proceed order with "DHL" shipping method and "Offline" payment
|
||||
And the exchange rate for currency "British Pound" was changed to 2.0
|
||||
Then I should be on the checkout summary step
|
||||
And the "Lannister Coat" product should have unit price "£300.00"
|
||||
And my order shipping should be "£60"
|
||||
And my order total should be "£360"
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
@managing_orders
|
||||
Feature: Seeing an order recalculated by exchange rate
|
||||
In order to be certain about price of an order in different currency than default
|
||||
As an Administrator
|
||||
I want to see an order recalculated by exchange rate from this currency
|
||||
|
||||
Background:
|
||||
Given the store ships to "British Virgin Islands"
|
||||
And the store has a zone "English" with code "EN"
|
||||
And this zone has the "British Virgin Islands" country member
|
||||
And the store operates on a channel named "Web"
|
||||
And that channel allows to shop using the "USD" currency
|
||||
And that channel allows to shop using the "GBP" currency with exchange rate 3.0
|
||||
And that channel uses the "USD" currency by default
|
||||
And the store allows paying with "Cash on Delivery"
|
||||
And the store has "DHL" shipping method with "$20.00" fee within "EN" zone
|
||||
And the store has a product "Angel T-Shirt" priced at "$20.00"
|
||||
And there is a customer "No Face" identified by an email "lucy@teamlucifer.com" and a password "pswd"
|
||||
And the customer chose "GBP" currency
|
||||
And there is a customer "lucy@teamlucifer.com" that placed an order "#00000666"
|
||||
And the customer bought a single "Angel T-Shirt"
|
||||
And the customer "No Face" addressed it to "Lucifer Morningstar", "Seaside Fwy" "90802" in the "United States"
|
||||
And for the billing address of "Mazikeen Lilim" in the "Pacific Coast Hwy", "90806" "Los Angeles", "United States"
|
||||
And the customer chose "DHL" shipping method with "Cash on Delivery" payment
|
||||
And I am logged in as an administrator
|
||||
|
||||
@ui
|
||||
Scenario: Seeing order summary in a currency selected by customer
|
||||
When I view the summary of the order "#00000666"
|
||||
Then the order's items total should be "£60.00"
|
||||
And the order's total should be "£120.00"
|
||||
Loading…
Add table
Reference in a new issue