Skip to content

Commit 25568d3

Browse files
committed
MTA-552: Re-factor Test for Create Product with New Category
- Fixed isolation on configurable variations
1 parent e3b2501 commit 25568d3

File tree

1 file changed

+3
-0
lines changed
  • dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Block/Adminhtml/Product/Edit/Tab/Super

1 file changed

+3
-0
lines changed

dev/tests/functional/tests/app/Magento/ConfigurableProduct/Test/Block/Adminhtml/Product/Edit/Tab/Super/Config.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ public function fillFormTab(array $fields, SimpleElement $element = null)
9999
$attributesValue = isset($fields['configurable_attributes_data']['source'])
100100
? $fields['configurable_attributes_data']['source']->getAttributesData()
101101
: [];
102+
foreach ($attributesValue as $key => $value) {
103+
$attributesValue[$key] = array_merge($value, $attributes['attributes_data'][$key]);
104+
}
102105
$this->getAttributeBlock()->fillAttributes($attributesValue);
103106
if (!empty($attributes['matrix'])) {
104107
$this->generateVariations();

0 commit comments

Comments
 (0)