@@ -19,16 +19,43 @@ Feature: Refunding order's PayPlug payment
1919 And I am viewing the summary of this order
2020
2121 @ui
22- Scenario : Marking order's payment as refunded
23- When I mark this order's payplug payment as refunded
24- Then I should be notified that the order's payment has been successfully refunded
25- And it should have payment with state refunded
22+ Scenario : Total refund order from PayPlug portal
23+ When I refund totally this order's from payplug portal
24+ And I want to refund some units of order "00000001"
25+ Then this order refunded total should be "$340.00"
26+
27+ @ui
28+ Scenario : Partial refund of one product from PayPlug portal
29+ When I refund partially this order's from payplug portal with 3.00
30+ And I want to refund some units of order "00000001"
31+ Then 1st "Green Arrow" product should have "$3.00" refunded
32+ And this order refunded total should be "$3.00"
33+
34+ @ui
35+ Scenario : Two Partial refund of one product from PayPlug portal
36+ When I refund partially this order's from payplug portal with 3.00
37+ When I refund partially this order's from payplug portal with 7.00
38+ And I want to refund some units of order "00000001"
39+ Then 1st "Green Arrow" product should have "$10.00" refunded
40+ And this order refunded total should be "$10.00"
41+
42+ @ui
43+ Scenario : Two Partial refund from PayPlug portal
44+ When I refund partially this order's from payplug portal with 13.00
45+ When I refund partially this order's from payplug portal with 17.00
46+ And I want to refund some units of order "00000001"
47+ Then 1st "Green Arrow" product should have "$10.00" refunded
48+ Then 1st "Red Arrow" product should have "$20.00" refunded
49+ And this order refunded total should be "$30.00"
2650
2751 @ui
28- Scenario : Marking an order as refunded after refunding all its payments
29- When I mark this order's payplug payment as refunded
30- Then it should have payment with state refunded
31- And it's payment state should be refunded
52+ Scenario : Two Partial refund with total amount from PayPlug portal
53+ When I refund partially this order's from payplug portal with 10.00
54+ When I refund partially this order's from payplug portal with 330.00
55+ And I want to refund some units of order "00000001"
56+ Then 1st "Green Arrow" product should have "$10.00" refunded
57+ Then 1st "Red Arrow" product should have "$330.00" refunded
58+ And this order refunded total should be "$340.00"
3259
3360 @ui
3461 Scenario : Should be able to refund using payplug payment
0 commit comments