Skip to content

Commit 36ee49c

Browse files
committed
ACP2E-891: Edit cart line item configurable product failed to Pre-select Production Option in 2.4.4
- Fixed the build failure for functional B2B and EE.
1 parent 7cc04d1 commit 36ee49c

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

app/code/Magento/ConfigurableProduct/view/frontend/web/js/options-updater.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
define([
22
'jquery',
33
'underscore',
4-
'Magento_Customer/js/customer-data'
4+
'Magento_Customer/js/customer-data',
5+
'domReady!'
56
], function ($, _, customerData) {
67
'use strict';
78

app/code/Magento/Swatches/Test/Mftf/Test/StorefrontSeeConfigurableProductSwatchOptionsToBePreSelectFromCartEditPageTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
<argument name="rowNumber" value="1"/>
134134
</actionGroup>
135135

136-
<wait time="60" stepKey="testWait"/>
136+
<wait time="60" stepKey="waitForDocumentPageLoad"/>
137137

138138
<waitForElementVisible selector="{{StorefrontProductInfoMainSection.selectedSwatchValue('Blue')}}" time="30" stepKey="waitForElementSwatchColorVisible"/>
139139

app/code/Magento/Swatches/view/frontend/web/js/configurable-customer-data.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require([
88
formSelector: '#product_addtocart_form',
99
swatchSelector: '.swatch-opt'
1010
},
11-
swatchWidgetName = 'mageSwatchRenderer',
11+
swatchWidgetName = 'mage-SwatchRenderer',
1212
widgetInitEvent = 'swatch.initialized',
1313

1414
/**
@@ -17,8 +17,6 @@ require([
1717
updateSwatchOptions = function () {
1818
var swatchWidget = $(selectors.swatchSelector).data(swatchWidgetName);
1919

20-
document.body.setAttribute('data-debug', swatchWidget ? 'swatchWidget is not null' : 'swatchWidget is null')
21-
2220
if (!swatchWidget || !swatchWidget._EmulateSelectedByAttributeId) {
2321
return;
2422
}

0 commit comments

Comments
 (0)