Skip to content

Commit

Permalink
[Admin][Order] Add scenarios for changing a customer shipping address
Browse files Browse the repository at this point in the history
  • Loading branch information
GSadee committed Sep 10, 2016
1 parent cd9e2ca commit ee088f4
Show file tree
Hide file tree
Showing 5 changed files with 194 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
@managing_orders
Feature: Modifying the customer shipping address after the order has been placed
In order to ship the order to the correct place
As an Administrator
I want to be able to modify the customer shipping address after the order has been placed

Background:
Given the store operates on a single channel in "United States" named "Web"
And that channel uses the "USD" currency by default
And the store ships everywhere for free
And the store allows paying with "Cash on Delivery"
And the store has a product "Suit" priced at "$400.00"
And there is a customer "mike@ross.com" that placed an order "#00000001"
And the customer bought a single "Suit"
And the customer "Mike Ross" addressed it to "350 5th Ave", "10118" "New York" in the "United States" with identical billing address
And the customer chose "Free" shipping method with "Cash on Delivery" payment
And I am logged in as an administrator

@todo
Scenario: Modifying the customer shipping address
When I view the summary of the order "#00000001"
And I want to modify a customer shipping address
And I specify its shipping address as "Los Angeles", "Seaside Fwy", "90802", "United States" for "Lucifer Morningstar"
And I save my changes
Then I should be notified that it has been successfully edited
And this order should be shipped to "Lucifer Morningstar", "Seaside Fwy", "90802", "Los Angeles", "United States"

@todo
Scenario: Modifying the customer shipping address when the product's price has been changed
Given the product "Suit" changed its price to "$300.00"
When I view the summary of the order "#00000001"
And I want to modify a customer shipping address
And I specify its shipping address as "Los Angeles", "Seaside Fwy", "90802", "United States" for "Lucifer Morningstar"
And I save my changes
Then I should be notified that it has been successfully edited
And this order should be shipped to "Lucifer Morningstar", "Seaside Fwy", "90802", "Los Angeles", "United States"
And the order's total should still be "$400.00"

@todo
Scenario: Modifying the customer shipping address when the channel has been disabled
Given the channel "Web" has been disabled
When I view the summary of the order "#00000001"
And I want to modify a customer shipping address
And I specify its shipping address as "Los Angeles", "Seaside Fwy", "90802", "United States" for "Lucifer Morningstar"
And I save my changes
Then I should be notified that it has been successfully edited
And this order should be shipped to "Lucifer Morningstar", "Seaside Fwy", "90802", "Los Angeles", "United States"
And the order's total should still be "$400.00"

@todo
Scenario: Modifying the customer shipping address when the currency has been disabled
Given the currency "USD" has been disabled
When I view the summary of the order "#00000001"
And I want to modify a customer shipping address
And I specify its shipping address as "Los Angeles", "Seaside Fwy", "90802", "United States" for "Lucifer Morningstar"
And I save my changes
Then I should be notified that it has been successfully edited
And this order should be shipped to "Lucifer Morningstar", "Seaside Fwy", "90802", "Los Angeles", "United States"
And the order's total should still be "$400.00"

@todo
Scenario: Modifying the customer shipping address when the product has been out of the stock
Given the product "Suit" has been out of stock
When I view the summary of the order "#00000001"
And I want to modify a customer shipping address
And I specify its shipping address as "Los Angeles", "Seaside Fwy", "90802", "United States" for "Lucifer Morningstar"
And I save my changes
Then I should be notified that it has been successfully edited
And this order should be shipped to "Lucifer Morningstar", "Seaside Fwy", "90802", "Los Angeles", "United States"
And the order's total should still be "$400.00"
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
@managing_orders
Feature: Modifying the customer shipping address on an order with an applied coupon
In order to ship order to the correct place
As an Administrator
I want to be able to modify the customer shipping address without changing the order's total

Background:
Given the store operates on a single channel in "United States"
And the store ships everywhere for free
And the store allows paying with "Cash on Delivery"
And the store has a product "Suit" priced at "$400.00"
And it belongs to "Suits"
And the store has promotion "Holiday promotion" with coupon "HOLIDAY"
And the promotion gives "$50.00" off if order contains products classified as "Suits"
And there is a customer "mike@ross.com" that placed an order "#00000001"
And the customer bought a single "Suit" using "HOLIDAY" coupon
And the customer "Mike Ross" addressed it to "350 5th Ave", "10118" "New York" in the "United States" with identical billing address
And the customer chose "Free" shipping method with "Cash on Delivery" payment
And I am logged in as an administrator

@todo
Scenario: Modifying the customer shipping address when the applied coupon is no longer valid
Given the coupon "HOLIDAY" has been already used
When I view the summary of the order "#00000001"
And I want to modify a customer shipping address
And I specify its shipping address as "Los Angeles", "Seaside Fwy", "90802", "United States" for "Lucifer Morningstar"
And I save my changes
Then I should be notified that it has been successfully edited
And this order should be shipped to "Lucifer Morningstar", "Seaside Fwy", "90802", "Los Angeles", "United States"
And the order's total should still be "$350.00"
And the order's promotion total should still be "-$50.00"
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
@managing_orders
Feature: Modifying the customer shipping address of an order with a different currency
In order to ship order to the correct place
As an Administrator
I want to be able to modify the customer shipping address without changing the order's total

Background:
Given the store operates on a channel named "Web"
And 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 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 "Suit" priced at "$400.00"
And there is a customer "mike@ross.com" that placed an order "#00000001"
And the customer bought a single "Suit"
And the customer "Mike Ross" addressed it to "350 5th Ave", "10118" "New York" in the "United States" with identical billing address
And the customer chose "DHL" shipping method with "Cash on Delivery" payment
And I am logged in as an administrator

@todo
Scenario: Modifying the customer shipping address when the exchange rate has been changed
Given the exchange rate for currency "GBP" was changed to 2.00
When I view the summary of the order "#00000001"
And I specify its shipping address as "Los Angeles", "Seaside Fwy", "90802", "United States" for "Lucifer Morningstar"
And I save my changes
Then I should be notified that it has been successfully edited
And this order should be shipped to "Lucifer Morningstar", "Seaside Fwy", "90802", "Los Angeles", "United States"
And the order's total should still be "£1260.00"
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
@managing_orders
Feature: Modifying the customer shipping address on an order with an applied promotion
In order to ship order to the correct place
As an Administrator
I want to be able to modify the customer shipping address without changing the order's total

Background:
Given the store operates on a single channel in "United States" named "Web"
And the store ships everywhere for free
And the store allows paying with "Cash on Delivery"
And the store has a product "Suit" priced at "$400.00"
And it belongs to "Suits"
And there is a promotion "Holiday promotion"
And the promotion gives "$50.00" off if order contains products classified as "Suits"
And there is a customer "mike@ross.com" that placed an order "#00000001"
And the customer bought a single "Suit"
And the customer "Mike Ross" addressed it to "350 5th Ave", "10118" "New York" in the "United States" with identical billing address
And the customer chose "Free" shipping method with "Cash on Delivery" payment
And I am logged in as an administrator

@todo
Scenario: Modifying the customer shipping address when the applied promotion is no longer valid
Given the promotion was disabled for the channel "Web"
When I view the summary of the order "#00000001"
And I want to modify a customer shipping address
And I specify its shipping address as "Los Angeles", "Seaside Fwy", "90802", "United States" for "Lucifer Morningstar"
And I save my changes
Then I should be notified that it has been successfully edited
And this order should be shipped to "Lucifer Morningstar", "Seaside Fwy", "90802", "Los Angeles", "United States"
And the order's total should still be "$350.00"
And the order's promotion total should still be "-$50.00"
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
@managing_orders
Feature: Modifying the customer shipping address on an order with taxes
In order to ship order to the correct place
As an Administrator
I want to be able to modify the customer shipping address without changing the order's total

Background:
Given the store operates on a single channel in "United States"
And the store ships everything for free within "US" zone
And the store allows paying offline
And the store has a product "Suit" priced at "$400.00"
And it belongs to "Suits"
And the store has "VAT" tax rate of 20% for "Suits" within "US" zone
And there is a customer "mike@ross.com" that placed an order "#00000001"
And the customer bought a single "Suit"
And the customer "Mike Ross" addressed it to "350 5th Ave", "10118" "New York" in the "United States" with identical billing address
And the customer chose "Free" shipping method with "Offline" payment
And I am logged in as an administrator

@todo
Scenario: Modifying the customer shipping address when the applied promotion is no longer valid
Given the "VAT" tax rate has 10% amount
When I view the summary of the order "#00000001"
And I want to modify a customer shipping address
And I specify its shipping address as "Los Angeles", "Seaside Fwy", "90802", "United States" for "Lucifer Morningstar"
And I save my changes
Then I should be notified that it has been successfully edited
And this order should be shipped to "Lucifer Morningstar", "Seaside Fwy", "90802", "Los Angeles", "United States"
And the order's total should still be "$480.00"
And the order's tax total should still be "$80.00"

0 comments on commit ee088f4

Please sign in to comment.