File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
dev/tests/api-functional/testsuite/Magento/GraphQl/Sales Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -168,6 +168,7 @@ public function testCustomerOrdersSimpleProductWithTaxesAndDiscounts()
168
168
]
169
169
];
170
170
$ this ->assertResponseFields ($ customerOrderResponse [0 ]["payment_methods " ], $ paymentMethodAssertionMap );
171
+ $ this ->assertEquals (10.75 , $ customerOrderResponse [0 ]['items ' ][0 ]['product_sale_price ' ]['value ' ]);
171
172
// Asserting discounts on order item level
172
173
$ this ->assertEquals (4 , $ customerOrderResponse [0 ]['items ' ][0 ]['discounts ' ][0 ]['amount ' ]['value ' ]);
173
174
$ this ->assertEquals ('USD ' , $ customerOrderResponse [0 ]['items ' ][0 ]['discounts ' ][0 ]['amount ' ]['currency ' ]);
@@ -1393,7 +1394,13 @@ private function getCustomerOrderQuery($orderNumber): array
1393
1394
billing_address {
1394
1395
... address
1395
1396
}
1396
- items{product_name product_sku quantity_ordered discounts {amount{value currency} label}}
1397
+ items{
1398
+ product_name
1399
+ product_sku
1400
+ quantity_ordered
1401
+ product_sale_price {value}
1402
+ discounts {amount{value currency} label}
1403
+ }
1397
1404
total {
1398
1405
base_grand_total{value currency}
1399
1406
grand_total{value currency}
You can’t perform that action at this time.
0 commit comments