mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
Add scenarios for adding province to country
This commit is contained in:
parent
cf65873491
commit
4f565f3426
5 changed files with 137 additions and 0 deletions
|
|
@ -0,0 +1,28 @@
|
|||
@customer_account
|
||||
Feature: Seeing province created manually in order history
|
||||
In order to be certain about province which I created manually
|
||||
As a Customer
|
||||
I want to be able to see province in the order history
|
||||
|
||||
Background:
|
||||
Given the store ships to "United Kingdom"
|
||||
And the store has a zone "English" with code "EN"
|
||||
And this zone has the "United Kingdom" country member
|
||||
And the store operates on a channel named "Web"
|
||||
And that channel allows to shop using the "GBP" currency
|
||||
And that channel uses the "GBP" 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 "$39.00"
|
||||
And I am a logged in customer
|
||||
And I placed an order "#00000666"
|
||||
And I bought a single "Angel T-Shirt"
|
||||
And I addressed it to "Lucifer Morningstar", "Seaside Fwy", "90802" "Norfolk" in the "United Kingdom", "East of England"
|
||||
And for the billing address of "Mazikeen Lilim" in the "Pacific Coast Hwy", "90806" "Peterborough", "United Kingdom", "East of England"
|
||||
And I chose "DHL" shipping method with "Cash on Delivery" payment
|
||||
|
||||
@ui
|
||||
Scenario: Seeing a province manually defined in a order history
|
||||
When I view the summary of the order "#00000666"
|
||||
Then I should see "East of England" as province in the shipping address
|
||||
And I should see "East of England" as province in the billing address
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
@checkout
|
||||
Feature: Specifying province for a country manually
|
||||
In order to specify a province for a country without default provinces
|
||||
As a Customer
|
||||
I want to be able to specify a province for selected country manually
|
||||
|
||||
Background:
|
||||
Given the store operates on a single channel in "United States"
|
||||
And the store ships to "Poland"
|
||||
And the store has a zone "World" with code "WR"
|
||||
And this zone has the "Poland" country member
|
||||
And the store has a product "PHP T-Shirt" priced at "$19.99"
|
||||
And the store ships everywhere for free
|
||||
And I am a logged in customer
|
||||
|
||||
@ui @javascript
|
||||
Scenario: Specifying province name manually for country without provinces defined
|
||||
Given I added product "PHP T-Shirt" to the cart
|
||||
And I am at the checkout addressing step
|
||||
When I specify the shipping address as "Cavendish", "Green Gables", "91-242", "Poland" for "Anne Shirley"
|
||||
And I specify the province name manually as "Lubelskie" for shipping address
|
||||
And I specify the billing address as "Warsaw", "Obarowska", "91-242", "Poland" for "Frog Monica"
|
||||
And I specify the province name manually as "Mazowieckie" for billing address
|
||||
And I complete the addressing step
|
||||
Then I should be on the checkout shipping step
|
||||
|
||||
@ui @javascript
|
||||
Scenario: Being unable to specify province name manually for country with defined provinces
|
||||
Given the country "United States" has the "Utah" province with "UT" code
|
||||
And I added product "PHP T-Shirt" to the cart
|
||||
And I am at the checkout addressing step
|
||||
When I specify the shipping address as "Cavendish", "Green Gables", "91-242", "United States" for "Anne Shirley"
|
||||
And I specify the billing address as "Frogpolis", "Leaf", "91-242", "United States" for "Frog Monica"
|
||||
Then I should not be able to specify province name manually for shipping address
|
||||
And I should not be able to specify province name manually for billing address
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
@checkout
|
||||
Feature: Seeing province created manually on order summary page
|
||||
In order to be certain about province which I created manually
|
||||
As a Customer
|
||||
I want to be able to see province on the order summary page
|
||||
|
||||
Background:
|
||||
And the store ships to "United Kingdom"
|
||||
And the store has a zone "English" with code "EN"
|
||||
And this zone has the "United Kingdom" country member
|
||||
And the store operates on a channel named "Web"
|
||||
And that channel allows to shop using the "GBP" currency
|
||||
And that channel uses the "GBP" 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 "PHP T-Shirt" priced at "$19.99"
|
||||
And I am a logged in customer
|
||||
|
||||
@ui @javascript
|
||||
Scenario: Seeing manually defined province on order summary page
|
||||
Given I had product "PHP T-Shirt" in the cart
|
||||
And I am at the checkout addressing step
|
||||
When I specify the shipping address for "Jon Snow" from "Ankh Morpork", "90210", "London", "United Kingdom", "East of England"
|
||||
And I specify the billing address for "Jon Snow" from "Ankh Morpork", "90210", "London", "United Kingdom", "East of England"
|
||||
And I complete the addressing step
|
||||
And I proceed order with "DHL" shipping method and "Cash on Delivery" payment
|
||||
Then I should be on the checkout summary step
|
||||
And I should see "East of England" in the shipping address
|
||||
And I should see "East of England" in the billing address
|
||||
|
|
@ -0,0 +1,28 @@
|
|||
@managing_orders
|
||||
Feature: Seeing province created manually on order summary page
|
||||
In order to be certain about province which was created manually by customer
|
||||
As a Administrator
|
||||
I want to be able to see province on the order summary page
|
||||
|
||||
Background:
|
||||
Given the store ships to "United Kingdom"
|
||||
And the store has a zone "English" with code "EN"
|
||||
And this zone has the "United Kingdom" country member
|
||||
And the store operates on a channel named "Web"
|
||||
And that channel allows to shop using the "GBP" currency
|
||||
And that channel uses the "GBP" 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 "$39.00"
|
||||
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 "Lucifer Morningstar" addressed it to "Seaside Fwy", "90802" "Norfolk" in the "United Kingdom", "East of England"
|
||||
And for the billing address of "Mazikeen Lilim" in the "Pacific Coast Hwy", "90806" "Peterborough", "United Kingdom", "East of England"
|
||||
And the customer chose "DHL" shipping method with "Cash on Delivery" payment
|
||||
And I am logged in as an administrator
|
||||
|
||||
@ui
|
||||
Scenario: Seeing manually definied province on order summary page
|
||||
When I view the summary of the order "#00000666"
|
||||
Then I should see "East of England" as province in the shipping address
|
||||
And I should see "East of England" ad province in the billing address
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
@managing_customers
|
||||
Feature: Seeing a province on customer's details
|
||||
In order to see a country's province defined by customer on theirs details page
|
||||
As an Administrator
|
||||
I want to be able to see specific customer's page with provinces in the addresses
|
||||
|
||||
Background:
|
||||
Given I am logged in as an administrator
|
||||
|
||||
@ui
|
||||
Scenario: Seeing customer's addresses
|
||||
Given the store has customer "f.baggins@shire.me" with name "Frodo Baggins" since "2011-01-10 21:00"
|
||||
And his shipping address is "Frodo Baggins", "Bag End", "12-1321", "Hobbiton", "United Kingdom", "East of England"
|
||||
And his billing address is "Bilbo Baggins", "The Last Homely House", "7", "Rivendell", "United Kingdom", "West of England"
|
||||
When I view details of the customer "f.baggins@shire.me"
|
||||
Then the province in the shipping address should be "East of England"
|
||||
Then the province in the billing address should be "West of England"
|
||||
Loading…
Add table
Reference in a new issue