Skip to content

Commit 9089799

Browse files
committed
MAGETWO-37555: Popup header is our of window range while creating group product
1 parent 27a4ec1 commit 9089799

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

app/code/Magento/GroupedProduct/view/adminhtml/web/js/grouped-product.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ define([
99
'jquery/ui',
1010
'Magento_Ui/js/modal/modal',
1111
'mage/translate',
12-
'mage/adminhtml/grid',
13-
''
12+
'mage/adminhtml/grid'
1413
], function ($, mageTemplate) {
1514
'use strict';
1615

@@ -116,7 +115,7 @@ define([
116115
buttons: [{
117116
id: 'grouped-product-dialog-apply-button',
118117
text: $.mage.__('Add Selected Products'),
119-
class: 'action-primary action-add',
118+
'class': 'action-primary action-add',
120119
click: function () {
121120
$.each(selectedProductList, function (index, product) {
122121
widget._add(null, product);

dev/tests/functional/tests/app/Magento/GroupedProduct/Test/Block/Adminhtml/Product/Grouped/AssociatedProducts.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class AssociatedProducts extends Tab
2929
*
3030
* @var string
3131
*/
32-
protected $productSearchGrid = "./ancestor::body//div[div[div[contains(@data-role,'add-product-dialog')]]]";
32+
protected $productSearchGrid = './/*[@data-role="modal"][.//*[@data-role="add-product-dialog"]]';
3333

3434
/**
3535
* Associated products list block
@@ -54,7 +54,7 @@ protected function getSearchGridBlock()
5454
{
5555
return $this->blockFactory->create(
5656
'Magento\GroupedProduct\Test\Block\Adminhtml\Product\Grouped\AssociatedProducts\Search\Grid',
57-
['element' => $this->_rootElement->find($this->productSearchGrid, Locator::SELECTOR_XPATH)]
57+
['element' => $this->browser->find($this->productSearchGrid, Locator::SELECTOR_XPATH)]
5858
);
5959
}
6060

0 commit comments

Comments
 (0)