Skip to content

Commit 44809b9

Browse files
committed
MC-36779: Product still present in the Wish List after added to order
1 parent f65490b commit 44809b9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/code/Magento/Sales/Test/Mftf/Test/CreateOrderFromEditCustomerPageTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
<waitForElementVisible selector="{{AdminOrderFormConfigureProductSection.optionSelect($$createConfigProductAttribute.default_frontend_label$$)}}" stepKey="waitForConfigurablePopover"/>
145145
<selectOption selector="{{AdminOrderFormConfigureProductSection.optionSelect($$createConfigProductAttribute.default_frontend_label$$)}}" userInput="$$getConfigAttributeOption1.label$$" stepKey="selectConfigurableOption"/>
146146
<click selector="{{AdminOrderFormConfigureProductSection.ok}}" stepKey="clickOkButton"/>
147-
<comment userInput="Click OK button to update lists" stepKey="clickOnUpdateButton"/>
147+
<comment userInput="Action should be removed but replaced with comment due to backward compatibility" stepKey="clickOnUpdateButton"/>
148148
<waitForPageLoad stepKey="waitForAdminOrderItemsOrderedSectionPageLoad1"/>
149149

150150
<!-- Assert Products in Order item section -->

app/code/Magento/Sales/view/adminhtml/web/order/create/scripts.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -964,17 +964,17 @@ define([
964964
}.bind(this));
965965
// response handler
966966
productConfigure.setOnLoadIFrameCallback(listType, function (response) {
967-
var area = ['items', 'shipping_method', 'billing_method', 'totals', 'giftmessage'];
967+
var areas = ['items', 'shipping_method', 'billing_method', 'totals', 'giftmessage'];
968968

969969
if (!response.ok) {
970970
return;
971971
}
972972
if (isWishlist) {
973973
this.removeSidebarItem(itemId, 'wishlist').done(function () {
974-
this.loadArea(area, true);
974+
this.loadArea(areas, true);
975975
}.bind(this));
976976
} else {
977-
this.loadArea(area, true);
977+
this.loadArea(areas, true);
978978
}
979979
}.bind(this));
980980
// show item configuration

0 commit comments

Comments
 (0)