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()
168168 ]
169169 ];
170170 $ this ->assertResponseFields ($ customerOrderResponse [0 ]["payment_methods " ], $ paymentMethodAssertionMap );
171+ $ this ->assertEquals (10.75 , $ customerOrderResponse [0 ]['items ' ][0 ]['product_sale_price ' ]['value ' ]);
171172 // Asserting discounts on order item level
172173 $ this ->assertEquals (4 , $ customerOrderResponse [0 ]['items ' ][0 ]['discounts ' ][0 ]['amount ' ]['value ' ]);
173174 $ this ->assertEquals ('USD ' , $ customerOrderResponse [0 ]['items ' ][0 ]['discounts ' ][0 ]['amount ' ]['currency ' ]);
@@ -1393,7 +1394,13 @@ private function getCustomerOrderQuery($orderNumber): array
13931394 billing_address {
13941395 ... address
13951396 }
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+ }
13971404 total {
13981405 base_grand_total{value currency}
13991406 grand_total{value currency}
You can’t perform that action at this time.
0 commit comments