Skip to content

Commit d4ba779

Browse files
committed
Merge remote-tracking branch 'origin/MAGETWO-62629' into 2.0.15-develop-pr14
2 parents 758f2ca + e5628b3 commit d4ba779

File tree

2 files changed

+9
-2
lines changed
  • app/code/Magento/GiftMessage/view/frontend/web/js/model
  • dev/tests/functional/tests/app/Magento/Checkout/Test/Block

2 files changed

+9
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ define(['uiElement', 'underscore', 'mage/url'],
7878
},
7979
afterSubmit: function() {
8080
window.location.href = url.build('checkout/cart/updatePost')
81-
+ '?form_key=' + window.giftOptionsConfig.giftMessage.formKey
81+
+ '?form_key=' + window.checkoutConfig.formKey
8282
+ '&cart[]';
8383
},
8484
getSubmitParams: function(remove) {

dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Cart.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,13 @@ class Cart extends Block
7878
*/
7979
protected $deleteItemButton = 'a.action.action-delete';
8080

81+
/**
82+
* Cart item class name.
83+
*
84+
* @var string
85+
*/
86+
protected $cartItemClass = \Magento\Checkout\Test\Block\Cart\CartItem::class;
87+
8188
/**
8289
* Get Shopping Cart item.
8390
*
@@ -98,7 +105,7 @@ public function getCartItem(FixtureInterface $product)
98105
Locator::SELECTOR_XPATH
99106
);
100107
$cartItem = $this->blockFactory->create(
101-
'Magento\Checkout\Test\Block\Cart\CartItem',
108+
$this->cartItemClass,
102109
['element' => $cartItemBlock]
103110
);
104111
}

0 commit comments

Comments
 (0)