Skip to content

Commit 89b534f

Browse files
committed
MTA-552: Re-factor Test for Create Product with New Category
- Fixed check of creation category
1 parent ad727fd commit 89b534f

File tree

1 file changed

+1
-0
lines changed
  • dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/Edit/Tab

1 file changed

+1
-0
lines changed

dev/tests/functional/tests/app/Magento/Catalog/Test/Block/Adminhtml/Product/Edit/Tab/ProductDetails.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public function fillFormTab(array $fields, SimpleElement $element = null)
5151
/* Fix browser behavior for click by hidden list result of suggest(category) element */
5252
$this->scrollToCategory();
5353
if (isset($fields['category_ids']['source'])
54+
&& $fields['category_ids']['source']->getCategories() !== null
5455
&& !$fields['category_ids']['source']->getCategories()[0]->hasData('id')
5556
) {
5657
$this->blockFactory->create(

0 commit comments

Comments
 (0)