Skip to content

Commit

Permalink
[Behat][CreditMemo] Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
GSadee committed Jan 27, 2020
1 parent e6c7706 commit 981220d
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion features/having_order_partially_refunded.feature
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ Feature: Having order partially refunded

@ui
Scenario: Having order partially refunded when its shipping is refunded
When shipment from order "#00000022" has already "$1.00" refunded with "Space money" payment
Given the "#00000022" order's shipping cost already has a refund of "$1.00" with "Space money" payment
Then this order's payment state should be "Partially refunded"
4 changes: 2 additions & 2 deletions features/providing_comment_for_credit_memo.feature
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ Feature: Providing comment for credit memo
When I want to refund some units of order "#00000022"
And I decide to refund 1st "Mr. Meeseeks T-Shirt" product with "Space money" payment and "Money for nothing" comment
And I browse the details of the only credit memo generated for order "#00000022"
Then this credit memo should contain 1 "Mr. Meeseeks T-Shirt" product with "$0.00" tax applied
And its total should be "$10.00"
Then it should contain 1 "Mr. Meeseeks T-Shirt" product with "10.00" net value, "0.00" tax amount and "10.00" gross value in "USD" currency
And its total should be "10.00" in "USD" currency
And it should be commented with "Money for nothing"

@ui
Expand Down
6 changes: 3 additions & 3 deletions features/refunding_part_of_order_unit.feature
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,23 @@ Feature: Refunding a part of an order unit

@ui @application
Scenario: Refunding the whole order unit price after partial refund
Given 1st "Mr. Meeseeks T-Shirt" product from order "#00000022" has already "$5.00" refunded with "Space money" payment
Given the 1st "Mr. Meeseeks T-Shirt" product from order "#00000022" already has a refund of "$5.00" with "Space money" payment
When I want to refund some units of order "#00000022"
And I decide to refund 1st "Mr. Meeseeks T-Shirt" product with "Space money" payment
Then I should be notified that selected order units have been successfully refunded
And this order refunded total should be "$12.30"

@ui @javascript
Scenario: Refunding the whole order price after partial refund
Given 1st "Mr. Meeseeks T-Shirt" product from order "#00000022" has already "$5.00" refunded with "Space money" payment
Given the 1st "Mr. Meeseeks T-Shirt" product from order "#00000022" already has a refund of "$5.00" with "Space money" payment
When I want to refund some units of order "#00000022"
And I decide to refund all units of this order with "Space money" payment
Then I should be notified that selected order units have been successfully refunded
And this order refunded total should be "$44.60"

@ui @application
Scenario: Not being able to refund more money than order unit total
Given 1st "Mr. Meeseeks T-Shirt" product from order "#00000022" has already "$5.00" refunded with "Space money" payment
Given the 1st "Mr. Meeseeks T-Shirt" product from order "#00000022" already has a refund of "$5.00" with "Space money" payment
When I want to refund some units of order "#00000022"
And I decide to refund "$10.00" from 1st "Mr. Meeseeks T-Shirt" product with "Space money" payment
Then I should be notified that I cannot refund more money than the order unit total
Expand Down
4 changes: 2 additions & 2 deletions features/refunding_part_of_shipment.feature
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ Feature: Refunding a part of an shipment

@ui @application
Scenario: Refunding the whole order unit price after partial refund
Given shipment from order "#00000022" has already "$5.00" refunded with "Space money" payment
Given the "#00000022" order's shipping cost already has a refund of "$5.00" with "Space money" payment
When I want to refund some units of order "#00000022"
And I decide to refund order shipment with "Space money" payment
Then this order refunded total should be "$20.00"

@ui @application
Scenario: Not being able to refund more money than shipment total
Given shipment from order "#00000022" has already "$5.00" refunded with "Space money" payment
Given the "#00000022" order's shipping cost already has a refund of "$5.00" with "Space money" payment
When I want to refund some units of order "#00000022"
And I try to refund "$18.00" from order shipment with "Space money" payment
Then I should be notified that I cannot refund more money than the shipment total
Expand Down
6 changes: 3 additions & 3 deletions features/viewing_details_of_credit_memo.feature
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ Feature: Viewing details of a credit memo
And it should be issued from "Rick Sanchez", "Seaside Fwy", "90802" "Los Angeles" in the "United States"
And it should contain 1 "PHP T-Shirt" product with "10.00" net value, "1.00" tax amount and "11.00" gross value in "USD" currency
And it should contain 1 "Symfony Mug" product with "17.50" net value, "3.50" tax amount and "21.00" gross value in "USD" currency
And it should contain a tax item "US VAT (10%)" with amount "1.00" in "USD" currency
And it should contain a tax item "VAT (20%)" with amount "3.50" in "USD" currency
And it should contain a tax item "10%" with amount "1.00" in "USD" currency
And it should contain a tax item "20%" with amount "3.50" in "USD" currency
And its total should be "32.00" in "USD" currency

@ui @application
Expand All @@ -44,7 +44,7 @@ Feature: Viewing details of a credit memo
Then it should have sequential number generated from current date
And it should be issued in "United States" channel
And it should contain 1 "PHP T-Shirt" product with "5.00" net value, "0.50" tax amount and "5.50" gross value in "USD" currency
And it should contain a tax item "US VAT (10%)" with amount "0.50" in "USD" currency
And it should contain a tax item "10%" with amount "0.50" in "USD" currency
And its total should be "5.50" in "USD" currency

@ui @application
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ Feature: Viewing details of a credit memo for order with a promotion applied
And it should be issued from "Rick Sanchez", "Seaside Fwy", "90802" "Los Angeles" in the "United States"
And it should contain 3 "PHP T-Shirt" products with "27.00" net value, "2.70" tax amount and "29.70" gross value in "USD" currency
And it should contain 1 "PHP T-Shirt" product with "9.01" net value, "0.90" tax amount and "9.91" gross value in "USD" currency
And it should contain a tax item "US VAT (10%)" with amount "3.60" in "USD" currency
And it should contain a tax item "10%" with amount "3.60" in "USD" currency
And its total should be "39.61" in "USD" currency

0 comments on commit 981220d

Please sign in to comment.