Skip to content

Commit 45c2542

Browse files
committed
MAGETWO-86120: [2.2] Gift message selection does not display in shopping cart
1 parent e673c83 commit 45c2542

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/code/Magento/GiftMessage/view/frontend/web/js/view/gift-message.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,16 @@ define([
3131

3232
this.itemId = this.itemId || 'orderLevel';
3333
model = new GiftMessage(this.itemId);
34-
giftOptions.addOption(model);
3534
this.model = model;
35+
this.isResultBlockVisible();
36+
giftOptions.addOption(model);
3637

3738
this.model.getObservable('isClear').subscribe(function (value) {
3839
if (value == true) { //eslint-disable-line eqeqeq
3940
self.formBlockVisibility(false);
4041
self.model.getObservable('alreadyAdded')(true);
4142
}
4243
});
43-
44-
this.isResultBlockVisible();
4544
},
4645

4746
/**

app/code/Magento/Quote/Test/Mftf/Test/StorefrontGuestCheckoutDisabledProductTest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@
103103
<click selector="{{AdminProductGridSection.firstRow}}" stepKey="clickOnProductPage"/>
104104
<waitForPageLoad stepKey="waitForProductPageLoad"/>
105105
<!-- Disabled child configurable product -->
106+
<scrollToTopOfPage stepKey="scrollToShowEnableDisableControl"/>
106107
<click selector="{{AdminProductFormSection.enableProductAttributeLabel}}" stepKey="clickDisableProduct"/>
107108
<click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="clickSaveProduct"/>
108109
<waitForPageLoad stepKey="waitForProductPageSaved"/>

0 commit comments

Comments
 (0)