Skip to content

Commit 93b889d

Browse files
Merge branch 'ACQE-7713' into ACQE-4Version-functional-mainline-deployment
2 parents c2402de + bfd23ec commit 93b889d

File tree

4 files changed

+18
-16
lines changed

4 files changed

+18
-16
lines changed

InventoryAdminUi/Test/Mftf/Test/AdminCreatePartialInvoiceForOrderWithVirtualProductOnCustomStockTest.xml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
/**
4-
* Copyright © Magento, Inc. All rights reserved.
4+
* Copyright 2024 Adobe
5+
* All rights reserved.
56
* See COPYING.txt for license details.
67
*/
78
-->
@@ -48,13 +49,6 @@
4849
<comment userInput="BIC workaround" stepKey="saveCustomStock"/>
4950
<comment userInput="BIC workaround" stepKey="reindexCacheFlushAfterAssignDefaultStockToMainWebsite"/>
5051

51-
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="performReindex">
52-
<argument name="indices" value=""/>
53-
</actionGroup>
54-
<actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanCache">
55-
<argument name="tags" value="full_page"/>
56-
</actionGroup>
57-
5852
<createData entity="VirtualProduct" stepKey="virtualProduct">
5953
<requiredEntity createDataKey="category"/>
6054
</createData>
@@ -69,6 +63,12 @@
6963
</actionGroup>
7064
<fillField selector="{{AdminProductSourcesGrid.rowQty('2')}}" userInput="100" stepKey="setCustomSourceQuantity2"/>
7165
<click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="saveEditedVirtualProduct"/>
66+
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="performReindex">
67+
<argument name="indices" value=""/>
68+
</actionGroup>
69+
<actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanCache">
70+
<argument name="tags" value="full_page"/>
71+
</actionGroup>
7272
</before>
7373

7474
<after>
@@ -146,8 +146,8 @@
146146
<argument name="selector" value="AdminProductGridFilterSection.skuFilter"/>
147147
<argument name="value" value="$$virtualProduct.sku$$"/>
148148
</actionGroup>
149-
<see selector="{{AdminProductGridSection.productQtyPerSource('1',$$customSource.source[name]$$)}}" userInput="99" stepKey="checkProductSourceQtyAfterInvoiceCreated"/>
150-
<see selector="{{AdminProductGridSection.productQtyPerSource('1',$$customSource2.source[name]$$)}}" userInput="100" stepKey="checkProductSource2QtyAfterInvoiceCreated"/>
151-
<see selector="{{AdminProductGridSection.productSalableQty('1',$$customStock.stock[name]$$)}}" userInput="197" stepKey="checkSalableQtyAfterInvoiceCreated"/>
149+
<waitForText selector="{{AdminProductGridSection.productQtyPerSource('1',$$customSource.source[name]$$)}}" userInput="99" stepKey="checkProductSourceQtyAfterInvoiceCreated"/>
150+
<waitForText selector="{{AdminProductGridSection.productQtyPerSource('1',$$customSource2.source[name]$$)}}" userInput="100" stepKey="checkProductSource2QtyAfterInvoiceCreated"/>
151+
<waitForText selector="{{AdminProductGridSection.productSalableQty('1',$$customStock.stock[name]$$)}}" userInput="197" stepKey="checkSalableQtyAfterInvoiceCreated"/>
152152
</test>
153153
</tests>

InventoryAdminUi/Test/Mftf/Test/AdminUserApplyToSeveralSimpleProductsMassActionUnAssignProductSourcesOnProductsGridToUnAssignAllAssignedSourcesTest.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!--
33
/**
4-
* Copyright © Magento, Inc. All rights reserved.
5-
* See COPYING.txt for license details.
4+
* Copyright 2025 Adobe
5+
* All Rights Reserved.
66
*/
77
-->
88

@@ -17,6 +17,7 @@
1717
<severity value="CRITICAL"/>
1818
<group value="msi"/>
1919
<group value="multi_mode"/>
20+
<group value="pr_exclude"/>
2021
</annotations>
2122

2223
<before>

InventoryInStorePickupAdminUi/Test/Mftf/Test/StorePickupDeliveryMethodHiddenInOrderCreatedFromAdminWhenNotAllProductsAvailableForPickupTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<description value="Store Pickup delivery method hidden in order created from Admin when not all products available for pickup"/>
1616
<testCaseId value="ACQE-6625"/>
1717
<severity value="CRITICAL"/>
18+
<group value="pr_exclude"/>
1819
</annotations>
1920

2021
<before>

InventorySourceSelectionApi/Model/Algorithms/Result/GetDefaultSortedSourcesResult.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public function execute(
9595

9696
$itemsTdDeliver = [];
9797
foreach ($inventoryRequest->getItems() as $item) {
98-
$normalizedSku = $this->normalizeSku($item->getSku());
98+
$normalizedSku = $this->normalizeSku(trim($item->getSku()));
9999
$itemsTdDeliver[$normalizedSku] = $item->getQty();
100100
}
101101

@@ -111,14 +111,14 @@ public function execute(
111111
);
112112

113113
foreach ($sourceItems as $sourceItem) {
114-
$normalizedSku = $this->normalizeSku($sourceItem->getSku());
114+
$normalizedSku = $this->normalizeSku(trim($sourceItem->getSku()));
115115
$sourceItemQtyAvailable = $this->getSourceItemQtyAvailable->execute($sourceItem);
116116
$qtyToDeduct = min(max($sourceItemQtyAvailable, 0.0), $itemsTdDeliver[$normalizedSku] ?? 0.0);
117117

118118
$sourceItemSelections[] = $this->sourceSelectionItemFactory->create(
119119
[
120120
'sourceCode' => $sourceItem->getSourceCode(),
121-
'sku' => $sourceItem->getSku(),
121+
'sku' => trim($sourceItem->getSku()),
122122
'qtyToDeduct' => $qtyToDeduct,
123123
'qtyAvailable' => $sourceItemQtyAvailable
124124
]

0 commit comments

Comments
 (0)