Skip to content

Commit 32bac73

Browse files
committed
MAGETWO-38445: Fix ConfigureProductInCustomerWishlistOnBackendTest functional test
1 parent d72a619 commit 32bac73

File tree

1 file changed

+3
-8
lines changed
  • dev/tests/functional/tests/app/Magento/Bundle/Test/Block/Adminhtml/Product/Composite

1 file changed

+3
-8
lines changed

dev/tests/functional/tests/app/Magento/Bundle/Test/Block/Adminhtml/Product/Composite/Configure.php

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,6 @@
1414
*/
1515
class Configure extends \Magento\Catalog\Test\Block\Adminhtml\Product\Composite\Configure
1616
{
17-
/**
18-
* Option selector
19-
*
20-
* @var string
21-
*/
22-
protected $option = '//fieldset[contains(@class,"composite-bundle")]//label[.="%option_name%"]//following-sibling::*//%selector%';
23-
2417
/**
2518
* Fill options for the product
2619
*
@@ -43,6 +36,8 @@ protected function prepareData(array $fields)
4336
{
4437
$productOptions = [];
4538
$checkoutData = $fields['checkout_data']['options'];
39+
$optionLocator = '//fieldset[contains(@class,"composite-bundle")]//label[.="%option_name%"]'
40+
. '//following-sibling::*//%selector%';
4641

4742
if (!empty($checkoutData['bundle_options'])) {
4843
foreach ($checkoutData['bundle_options'] as $key => $option) {
@@ -52,7 +47,7 @@ protected function prepareData(array $fields)
5247
$optionMapping[$type]['selector'] = str_replace(
5348
'%selector%',
5449
str_replace('%product_name%', $option['value']['name'], $optionMapping[$type]['selector']),
55-
str_replace('%option_name%', $option['title'], $this->option)
50+
str_replace('%option_name%', $option['title'], $optionLocator)
5651
);
5752

5853
$optionMapping[$type]['value'] = ($type == 'checkbox' || $type == 'radiobutton')

0 commit comments

Comments
 (0)